This commit is contained in:
Lu Wang 2013-04-07 00:58:15 +08:00
parent 68791299e5
commit d39a5331a1
3 changed files with 4 additions and 5 deletions

6
TODO
View File

@ -1,7 +1,3 @@
- page wise optimization (frequent used states)
- handle large negative letter space
- remove unused values in statemanager (due to optimization), probably ref count?
- merge sub/sup into one line
- don't dump image when it is empty
== Future: ==
@ -28,3 +24,5 @@ Not enough motivation/Lazy
- ajax in pdf2htmlEX for separated pages
- separate classes for annotations (such that we don't have to hide all css drawings for printing)
- Widget Annoataion
- handle large negative letter space
- different optimization levels

View File

@ -311,7 +311,7 @@ void HTMLRenderer::check_state_change(GfxState * state)
// text on a same horizontal line, we can insert positive or negaive x-offsets
merged = true;
}
else
else if(param.optimize_text)
{
// otherwise we merge the lines only when
// - text are not shifted to the left too much

View File

@ -20,6 +20,7 @@ HTMLTextPage::HTMLTextPage(const Param & param, AllStateManater & all_manager)
void HTMLTextPage::dump_text(ostream & out)
{
optimize();
for(auto iter = text_lines.begin(); iter != text_lines.end(); ++iter)
(*iter)->dump_text(out);
}