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
|
c++ classes for different states
|
||||||
|
|
||||||
== Future: ==
|
== Future: ==
|
||||||
|
@ -277,7 +277,6 @@ class HTMLRenderer : public OutputDev
|
|||||||
double cur_font_size;
|
double cur_font_size;
|
||||||
|
|
||||||
// transform matrix
|
// transform matrix
|
||||||
long long cur_ttm_id;
|
|
||||||
bool ctm_changed;
|
bool ctm_changed;
|
||||||
bool text_mat_changed;
|
bool text_mat_changed;
|
||||||
// horizontal scaling
|
// horizontal scaling
|
||||||
|
@ -27,7 +27,7 @@ using std::endl;
|
|||||||
void HTMLRenderer::TextLineBuffer::reset(GfxState * state)
|
void HTMLRenderer::TextLineBuffer::reset(GfxState * state)
|
||||||
{
|
{
|
||||||
state->transform(state->getCurX(), state->getCurY(), &x, &y);
|
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)
|
void HTMLRenderer::TextLineBuffer::append_unicodes(const Unicode * u, int l)
|
||||||
|
@ -342,12 +342,13 @@ void HTMLRenderer::post_process()
|
|||||||
{
|
{
|
||||||
// dump css
|
// dump css
|
||||||
font_size_manager .dump_css(f_css.fs);
|
font_size_manager .dump_css(f_css.fs);
|
||||||
letter_space_manager.dump_css(f_css.fs);
|
letter_space_manager .dump_css(f_css.fs);
|
||||||
word_space_manager .dump_css(f_css.fs);
|
word_space_manager .dump_css(f_css.fs);
|
||||||
rise_manager .dump_css(f_css.fs);
|
rise_manager .dump_css(f_css.fs);
|
||||||
whitespace_manager .dump_css(f_css.fs);
|
whitespace_manager .dump_css(f_css.fs);
|
||||||
height_manager .dump_css(f_css.fs);
|
height_manager .dump_css(f_css.fs);
|
||||||
left_manager .dump_css(f_css.fs);
|
left_manager .dump_css(f_css.fs);
|
||||||
|
transform_matrix_manager.dump_css(f_css.fs);
|
||||||
|
|
||||||
// close files
|
// close files
|
||||||
f_outline.fs.close();
|
f_outline.fs.close();
|
||||||
|
@ -116,7 +116,8 @@ void HTMLRenderer::reset_state()
|
|||||||
cur_has_stroke = false;
|
cur_has_stroke = false;
|
||||||
|
|
||||||
rise_manager .reset();
|
rise_manager .reset();
|
||||||
height_manager.reset();
|
height_manager .reset();
|
||||||
|
transform_matrix_manager.reset();
|
||||||
|
|
||||||
// no need to reset whitespace or left
|
// no need to reset whitespace or left
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user