PDF Creation / Image Resolution

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
GodOfHonk
Forum Newbie
Posts: 6
Joined: Thu May 09, 2002 2:17 pm
Location: St. Louis

PDF Creation / Image Resolution

Post by GodOfHonk »

Hi,

This may teeter on the on-topic/off-topic line, but here goes....

I have a PHP driven newsletter component on a website and I now need to produce a PDF version of each newsletter edition. I have looked at using PDFLib and some pure PHP libraries as well as converting HTML output to PDF using HTMLDoc.

My question is about image resolution. Say a user uploads an image for the newsletter. I would like to ask to user to upload only one photo and generate an image for the web version (72dpi) and one for the print/PDF version (300dpi).

Has anybody encountered this and found a straight answer about how image resolution works in PDFs?? Also, does anybody know of a good tool to convert image resolution (from 300 to 72)? ImageMagick's -density option doesn't seem to cut it.

The site will be running PHP 4.3x on Mac OS X 10.2 Server.

Thanks!

GodOfHonk
Post Reply