mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
working
This commit is contained in:
parent
528797171c
commit
215b377b88
@ -17,6 +17,7 @@ pdf2htmlEX is optimized for recent versions of moderm web browsers such as Mozil
|
|||||||
|
|
||||||
Features
|
Features
|
||||||
----------------------------
|
----------------------------
|
||||||
|
* Text Selection
|
||||||
* Font embedding
|
* Font embedding
|
||||||
* Proper styling
|
* Proper styling
|
||||||
* Optimization for Web
|
* Optimization for Web
|
||||||
|
@ -396,9 +396,9 @@ void HTMLRenderer::endString(GfxState *state) {
|
|||||||
|
|
||||||
// TODO: optimize text matrix search/install
|
// TODO: optimize text matrix search/install
|
||||||
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() + cur_state->getFont()->getDescent() * cur_state->getFontSize() << "px;"
|
||||||
<< "left:" << cur_string->getX() << "px;"
|
<< "left:" << cur_string->getX() << "px;"
|
||||||
<< "top:" << (pageHeight - cur_string->getY() - 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
|
||||||
@ -413,7 +413,7 @@ void HTMLRenderer::endString(GfxState *state) {
|
|||||||
html_fout << "\"";
|
html_fout << "\"";
|
||||||
double x,y;
|
double x,y;
|
||||||
cur_state->transform(cur_state->getCurX(), cur_state->getCurY(), &x, &y);
|
cur_state->transform(cur_state->getCurX(), cur_state->getCurY(), &x, &y);
|
||||||
html_fout << boost::format(" data-x=\"%1%\" data-y=\"%2%")%x%y;
|
html_fout << boost::format(" data-x=\"%1%\" data-y=\"%2%\" hs=\"%3%")%x%y%(cur_state->getHorizScaling());
|
||||||
}
|
}
|
||||||
|
|
||||||
html_fout << "\">";
|
html_fout << "\">";
|
||||||
|
Loading…
Reference in New Issue
Block a user