[poppler] test/test-gen: inline-image.pl,NONE,1.1

Jeff Muizelaar jeff at infidigm.net
Wed Nov 23 13:30:15 PST 2005


On Wed, Nov 23, 2005 at 07:14:16AM -0500, Leonard Rosenthol wrote:
> At 07:44 PM 11/22/2005, Jeff Muizelaar wrote:
> >$root->proc_set("PDF", "Text");         # Say that all pages have 
> >PDF and Text instructions
> 
>         ProcSet was deprecated with PDF 1.4/Acrobat 5 and only wastes space.

I left this in some generation scripts because otherwise the perl script
likes to complain about something I didn't feel like investigating.

> 
> 
> >#my ($w,$h,$bpc,$cs,$img)=parseImage('inline-image.ppm');
> >my ($w,$h,$bpc,$cs,$img)=parseImage('romedalen.ppm');
> 
>         I realize it's only a test - but I assume these images are 
> under the PDF Spec rec for size of inline images...

no, the image isn't under the rec size, but i didn't feel like bothering
with another image.

> 
> 
> >#$page->add("0 0 34 rg\n");
> 
>         Color values in PDF are floats between 0 and 1.  34 isn't valid.

fixed.

> 
> >$page->add(sprintf("%0.6f %0.6f %0.6f %0.6f %0.6f %0.6f cm\n", 
> >$sx,0,0,$sy,$x+100,$y));
> 
>         Why 6 decimal places?  Waste of space.

fixed.

Thanks for the comments,

-Jeff


More information about the poppler mailing list