mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
Merge branch 'master' of github.com:coolwanglu/pdf2htmlEX
This commit is contained in:
commit
528797171c
@ -107,9 +107,11 @@ function show_pages()\
|
|||||||
var idx = 0;\
|
var idx = 0;\
|
||||||
var f = function(){\
|
var f = function(){\
|
||||||
if (idx < pages.length) {\
|
if (idx < pages.length) {\
|
||||||
|
try{\
|
||||||
pages[idx].style.display='block';\
|
pages[idx].style.display='block';\
|
||||||
++idx;\
|
}catch(e){}\
|
||||||
setTimeout(f,100);\
|
++idx;\
|
||||||
|
setTimeout(f,100);\
|
||||||
}\
|
}\
|
||||||
};\
|
};\
|
||||||
f();\
|
f();\
|
||||||
@ -396,7 +398,7 @@ void HTMLRenderer::endString(GfxState *state) {
|
|||||||
html_fout << boost::format("<div class=\"l f%|1$x| s%|2$x| t%|3$x|\" style=\"") % cur_fn_id % cur_fs_id % install_transform_matrix(cur_text_mat)
|
html_fout << boost::format("<div class=\"l f%|1$x| s%|2$x| t%|3$x|\" style=\"") % cur_fn_id % cur_fs_id % install_transform_matrix(cur_text_mat)
|
||||||
<< "bottom:" << cur_string->getY() << "px;"
|
<< "bottom:" << cur_string->getY() << "px;"
|
||||||
<< "left:" << cur_string->getX() << "px;"
|
<< "left:" << cur_string->getX() << "px;"
|
||||||
<< "line-height:" << (cur_state->getFont()->getAscent() * cur_state->getFontSize()) << "px;"
|
<< "top:" << (pageHeight - cur_string->getY() - cur_state->getFont()->getAscent() * cur_state->getFontSize()) << "px;"
|
||||||
;
|
;
|
||||||
|
|
||||||
// letter & word spacing
|
// letter & word spacing
|
||||||
|
Loading…
Reference in New Issue
Block a user