mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
cleanup in form.cc
This commit is contained in:
parent
54781e0523
commit
a90ae31a8a
@ -28,8 +28,7 @@ void HTMLRenderer::process_form(ofstream & out)
|
||||
for(int i = 0; i < num; i++)
|
||||
{
|
||||
FormWidget * w = widgets->getWidget(i);
|
||||
double x1, y1, x2, y2, width, font_size;
|
||||
int height;
|
||||
double x1, y1, x2, y2;
|
||||
|
||||
w->getRect(&x1, &y1, &x2, &y2);
|
||||
x1 = x1 * param.zoom;
|
||||
@ -37,12 +36,12 @@ void HTMLRenderer::process_form(ofstream & out)
|
||||
y1 = y1 * param.zoom;
|
||||
y2 = y2 * param.zoom;
|
||||
|
||||
width = x2 - x1;
|
||||
height = y2 - y1;
|
||||
double width = x2 - x1;
|
||||
double height = y2 - y1;
|
||||
|
||||
if(w->getType() == formText)
|
||||
{
|
||||
font_size = height / 2;
|
||||
double font_size = height / 2;
|
||||
|
||||
out << "<input id=\"text-" << pageNum << "-" << i
|
||||
<< "\" class=\"" << CSS::INPUT_TEXT_CN
|
||||
|
Loading…
Reference in New Issue
Block a user