1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00

fix matrix

This commit is contained in:
Lu Wang 2013-02-05 20:37:05 +08:00
parent 8e24776124
commit 9d88b7be1d
5 changed files with 14 additions and 12 deletions

1
TODO
View File

@ -1,3 +1,4 @@
optimize font_size & transform matrix tracking
c++ classes for different states
== Future: ==

View File

@ -277,7 +277,6 @@ class HTMLRenderer : public OutputDev
double cur_font_size;
// transform matrix
long long cur_ttm_id;
bool ctm_changed;
bool text_mat_changed;
// horizontal scaling

View File

@ -27,7 +27,7 @@ using std::endl;
void HTMLRenderer::TextLineBuffer::reset(GfxState * state)
{
state->transform(state->getCurX(), state->getCurY(), &x, &y);
tm_id = renderer->cur_ttm_id;
tm_id = renderer->transform_matrix_manager.get_id();
}
void HTMLRenderer::TextLineBuffer::append_unicodes(const Unicode * u, int l)

View File

@ -348,6 +348,7 @@ void HTMLRenderer::post_process()
whitespace_manager .dump_css(f_css.fs);
height_manager .dump_css(f_css.fs);
left_manager .dump_css(f_css.fs);
transform_matrix_manager.dump_css(f_css.fs);
// close files
f_outline.fs.close();

View File

@ -117,6 +117,7 @@ void HTMLRenderer::reset_state()
rise_manager .reset();
height_manager .reset();
transform_matrix_manager.reset();
// no need to reset whitespace or left