Create high resolution PDF

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
JLT
Forum Newbie
Posts: 3
Joined: Wed Jan 09, 2008 9:18 am

Create high resolution PDF

Post by JLT »

Hi there,

I would like to generate a html file with PHP. This HTML file must be converted to an PDF file. There are enough tools that can do that on the fly. But I need te PDF files to be in high resolution. Suggestions?

Regards,
Jelte
Netherlands
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

Unless you've got graphics, PDFs are resolution independant - they're vector based.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
JLT
Forum Newbie
Posts: 3
Joined: Wed Jan 09, 2008 9:18 am

Post by JLT »

That's wright! Most of the information is vector like.
But there will be some photo's and that's where the problem begins...
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

Just use high-res photos. unless you downsample them they'll maintain their resolution.
JLT
Forum Newbie
Posts: 3
Joined: Wed Jan 09, 2008 9:18 am

Re: Create high resolution PDF

Post by JLT »

So if I make a simple fore example:

- text
- on photo

And I'll take a photo on 300 dpi and import them on te page and resize it to normal (smaller) size. And I convert all to a PDf file with for example ezpdf class. The PDF file will have a high res photo in it?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Create high resolution PDF

Post by John Cartwright »

JLT wrote:So if I make a simple fore example:

- text
- on photo

And I'll take a photo on 300 dpi and import them on te page and resize it to normal (smaller) size. And I convert all to a PDf file with for example ezpdf class. The PDF file will have a high res photo in it?
Try it.
Post Reply