[poppler] test/test-gen: inline-image.pl,NONE,1.1
Leonard Rosenthol
leonardr at pdfsages.com
Wed Nov 23 04:14:16 PST 2005
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.
>#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...
>#$page->add("0 0 34 rg\n");
Color values in PDF are floats between 0 and 1. 34 isn't valid.
>$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.
Leonard
---------------------------------------------------------------------------
Leonard Rosenthol <mailto:leonardr at pdfsages.com>
Chief Technical Officer <http://www.pdfsages.com>
PDF Sages, Inc. 215-938-7080 (voice)
215-938-0880 (fax)
More information about the poppler
mailing list