[poppler] Image optimization

Jeff Muizelaar jeff at infidigm.net
Sun May 22 11:08:46 PDT 2005


On Sun, May 22, 2005 at 10:12:53AM -0400, Leonard Rosenthol wrote:
> At 09:52 AM 5/22/2005, Jeff Muizelaar wrote:
> >I haven't actually tested it with those things because I couldn't find
> >any pdfs that used them (esp. the vertical writing mode).
> 
>         I'll dig some up for you...

That would be great, thanks.

> > However, there shouldn't be any problems. It is basically the difference 
> >between
> 
>         It isn't that simple..
> 
>         Look at Gfx::doShowText, which is where the magic happens.
> 
>         In the case of a drawChar() model, it does all the relevant 
> calculations between characters (and words) to place the glyphs as the 
> correct location.  In the case of drawString(), it expects that the 
> OutputDev is going to do all that.  I don't know if Cairo has been properly 
> setup to address all the necessary transforms and spacing values.
> 
The code in CairoOutputDevice::drawString() is basically a copy of the code
that calls drawChar() so it produce exactly the same the results.

-Jeff


More information about the poppler mailing list