Page 1 of 1

Saving the php output to a pdf

Posted: Fri Sep 05, 2008 5:55 am
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.

Re: Saving the php output to a pdf

Posted: Fri Sep 05, 2008 6:05 am
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.

Re: Saving the php output to a pdf

Posted: Fri Sep 05, 2008 6:07 am
by zplits