Posted on 2008-05-19 16:09:54-07 by tqisjim
PDF::API2::Content->image question

According to POD:

> Per default this has a 72dpi resolution, so if you want an image to have a
> 150 or 300dpi resolution, you should specify a scale of 72/150 (or 72/300)
> or adjust width/height accordingly.

I have spent a little time Googling the PDF format. I learned that PDF extends PostScript to bridge computer generated composition with mechanical hard-copy production. In other words, PDF::API2 should generate print quality images of 150 dpi, 300 dpi, or even higher resolution.

I've been told that image resolution is a meta-data property of images embedded in a PDF. (Although I've been unable to confirm this). In that case, I expect that the scale property passed to PDF::API2::Content->image would be embedded into the PDF file as well as the full resolution image; The scaling should be performed by the output device, eg, the printer.

My experience is inconsistent with the documentation. When I follow the above instructions, the PDF::API2 rescales the image to 72 dpi. Am I doing something wrong? Is there another way to change the resolution from the default 72 dpi? Or am I just SOL?

Thanks.

Jim Schueler

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.