mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
fix scale
This commit is contained in:
parent
49a527759b
commit
a3a67d48ae
@ -156,9 +156,9 @@ void HTMLRenderer::startPage(int pageNum, GfxState *state)
|
||||
|
||||
html_fout
|
||||
<< "<div id=\"p" << pageNum << "\" class=\"p\" style=\"width:"
|
||||
<< (pageWidth * scale_factor2) << "px;height:"
|
||||
<< (pageHeight * scale_factor2) << "px;\">"
|
||||
<< "<div id=\"b" << pageNum << "\" class=\"b\" style=\"width:"
|
||||
<< (pageWidth) << "px;height:"
|
||||
<< (pageHeight) << "px;\">"
|
||||
<< "<div class=\"b\" style=\"width:"
|
||||
<< pageWidth << "px;height:"
|
||||
<< pageHeight << "px;";
|
||||
|
||||
|
@ -146,7 +146,7 @@ void HTMLRenderer::check_state_change(GfxState * state)
|
||||
double new_draw_ctm[6];
|
||||
memcpy(new_draw_ctm, cur_ctm, sizeof(new_draw_ctm));
|
||||
|
||||
double new_draw_scale = scale_factor2 * sqrt(new_draw_ctm[2] * new_draw_ctm[2] + new_draw_ctm[3] * new_draw_ctm[3]);
|
||||
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]);
|
||||
|
||||
double new_draw_font_size = cur_font_size;
|
||||
if(_is_positive(new_draw_scale))
|
||||
|
Loading…
Reference in New Issue
Block a user