RE: Image Problems
"Mark Fowle" <mfowle-uVnJ9s0aRV+BUy7/[email protected]> Wed, 27 Feb 2008 09:45:00 -0500
| Newsgroups | gmane.comp.lang.perl.modules.pdfapi2 |
|---|---|
| Message-ID | <[email protected]> |
600 x 400 pixels has no meaning in PDF, everything is measured in Inches. I think the issue is that 500x300 is pixels, but PDF's are in inches, or points of an inch. Modern windows computers displays default to 96 DPI so a 500 x 300 pixel image would be about 5 ½ x 3 1/8 inches. I think PDFs default to 72 DPI for raster images, so the same image, unconstrained would be about 7 x 4 inches. I hope the above makes some sense, I need more coffee. If the PDF's are going to be printed you might want to consider much higher DPI images, say 300 DPI, then size them in the PDF. They will look good in both print and on screen. I see someone else has commented on the Dif between Raster and Vector... Good luck. I've done a gradient box once - used a stretched image (1 pixel x 500 pixles under an un filled box.). The image was a gradient done in GIMP. ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Ben Eagle Sent: Wednesday, February 27, 2008 9:03 AM To: [email protected] Subject: [perl-text-pdf-modules] Image Problems I had 2 questions, first I use a module that creates png images to a temp directory, no problems there, it save the image at 500x300 the problem comes in when I try to open said image and place it into the PDF document when its placed using 500x300 it actually display in the pdf at 100% as 600x 400 or something to that order, any Ideas why? the second Question is there any way to make a box in API2 with gradient colors? -Ben