[poppler] [PATCH] Selection improvements

Andreas Becker atayoohoo at googlemail.com
Fri Oct 7 06:28:23 PDT 2011


>
> Not sure if you are sending and old patch again or you are a new person
> doing
> the same mistake, but we have discussed this a few times, starting a new
> word
> when the font changes is wrong.
>
> As an example of why it is wrong your patch changes the output of pdftotext
> in
> http://wooster.hut.fi/kurssit/s88211/s88211MatlabProject.pdf
> from
> uses a channel model described in [4]
> to
> uses a channel model described in [4 ]
>
I am a new person.
If only the space after "[4" is a problem, I can fix it using the variable
spaceAfter (TextOutputDev.cc).

Another possibility is to store a GfxFont* array in TextWord, so that every
letter has its own font.
I tested this and it works fine, but the rest of poppler still acts as if
one word had only one font. A word would have
a "main font" and letters with individual fonts. It is not a very clean
solution, but probably better
than starting new words.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20111007/4df6f184/attachment.html>


More information about the poppler mailing list