mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
fix matrix
This commit is contained in:
parent
8e24776124
commit
9d88b7be1d
1
TODO
1
TODO
@ -1,3 +1,4 @@
|
||||
optimize font_size & transform matrix tracking
|
||||
c++ classes for different states
|
||||
|
||||
== Future: ==
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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();
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user