1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00

clipbox fix

This commit is contained in:
Lu Wang 2013-05-04 19:36:18 +08:00
parent 26eba18e83
commit c30bc8a353

View File

@ -154,9 +154,11 @@ void HTMLRenderer::check_state_change(GfxState * state)
if(all_changed || clip_changed) if(all_changed || clip_changed)
{ {
//TODO: compare with current clip box
double x1, x2, y1, y2; double x1, x2, y1, y2;
state->getClipBBox(&x1, &y1, &x2, &y2); state->getClipBBox(&x1, &y1, &x2, &y2);
html_text_page.clip(x1, y1, x2, y2); html_text_page.clip(x1, y1, x2, y2);
new_line_state = NLS_NEWLINE;
} }
bool need_recheck_position = false; bool need_recheck_position = false;