File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -156,9 +156,9 @@ void HTMLRenderer::startPage(int pageNum, GfxState *state)
156156
157157 html_fout
158158 << " <div id=\" p" << pageNum << " \" class=\" p\" style=\" width:"
159- << (pageWidth * scale_factor2 ) << " px;height:"
160- << (pageHeight * scale_factor2 ) << " px;\" >"
161- << " <div id= \" b " << pageNum << " \" class=\" b\" style=\" width:"
159+ << (pageWidth) << " px;height:"
160+ << (pageHeight) << " px;\" >"
161+ << " <div class=\" b\" style=\" width:"
162162 << pageWidth << " px;height:"
163163 << pageHeight << " px;" ;
164164
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ void HTMLRenderer::check_state_change(GfxState * state)
146146 double new_draw_ctm[6 ];
147147 memcpy (new_draw_ctm, cur_ctm, sizeof (new_draw_ctm));
148148
149- double new_draw_scale = scale_factor2 * sqrt (new_draw_ctm[2 ] * new_draw_ctm[2 ] + new_draw_ctm[3 ] * new_draw_ctm[3 ]);
149+ double new_draw_scale = 1.0 / scale_factor2 * sqrt (new_draw_ctm[2 ] * new_draw_ctm[2 ] + new_draw_ctm[3 ] * new_draw_ctm[3 ]);
150150
151151 double new_draw_font_size = cur_font_size;
152152 if (_is_positive (new_draw_scale))
You can’t perform that action at this time.
0 commit comments