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.
Saving the php output to a pdf
Moderator: General Moderators
Re: Saving the php output to a pdf
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.
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
I hope you'll find this helpful.
http://www.sitepoint.com/article/generate-pdfs-php/
http://www.sitepoint.com/article/generate-pdfs-php/