Saving the php output to a 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
gsairam
Forum Newbie
Posts: 4
Joined: Fri Sep 05, 2008 5:38 am

Saving the php output to a pdf

Post by gsairam »

Hi all,
Thankyou one and all in advance.
Explanation of the Problem:
The PHP output shown on the screen, has to be saved to PDF file, If I click a button. ( I need a php coding to save the output to PDF file). Please help me.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Saving the php output to a pdf

Post by onion2k »

PDF files are completely different to HTML, you can't just save the same output as a PDF. You'll need to code a whole new system to do the layout as a PDF file if you need to generate the PDF content using PHP. I suggest you look into the FPDF library - http://www.fpdf.org/

And take it from me, if your HTML layout is at all complicated, you've got a lot of work ahead of you.
User avatar
zplits
Forum Contributor
Posts: 158
Joined: Sun Aug 03, 2008 8:59 pm

Re: Saving the php output to a pdf

Post by zplits »

Post Reply