[poppler] [PATCH] proper implementation of drawImageMask and enable type3 fonts

Martin Kretzschmar m_kretzschmar at gmx.net
Sat Mar 12 08:14:43 PST 2005


Am Freitag, den 11.03.2005, 18:00 -0500 schrieb Kristian Høgsberg:
> Martin Kretzschmar wrote:
> > 
> > AFAIR http://bugzilla.gnome.org/attachment.cgi?id=19867&action=view uses
> > ImageMask (in Type 3 fonts). 
> > 
> > You can use a command like this 
> > 
> > 	pdftk original cat 1-1 output /tmp/page-1.pdf
> > 
> > to extract a single page and get a smaller file.
> 
> Thanks, that's useful, and that PDF looks like an interesting case 

Yeah, probably a good example of a pdf generated by an ancient
Ghostscript.

> (what's the bug number, btw?)

The whole bug is here (ignore comment #2 ;-):

http://bugzilla.gnome.org/show_bug.cgi?id=122021

> However, for the poppler test suite, I 
> was thinking of creating a number of tiny PDF files designed to exercise 
> specific code paths in xpdf.
>
>   Jeff mentioned this:
> 
>    infidigm.net/~jeff/mask.pdf
> 
> in IRC the other day, and that looks like something Jeff made 
> specifically to test the ImageMask code path.  Ideally, when we change 
> xpdf internals we should make a test case that use the affected PDF 
> operators and render a reference image before doing the change.

That would be cool to have.

>   When 
> the change is implemented, we can test for regressions by comparing the 
> new output to the reference image.

I haven't used it yet, but Caolan McNamara has recently written
something like this for openoffice.org. Maybe you can steal some ideas
from there:

http://people.redhat.com/caolanm/oocompare/oocompare-0.0.1.tar.gz

Regards,

Martin



More information about the poppler mailing list