2 Replies - 20956 Views - Last Post: 20 March 2008 - 03:24 PM Rate Topic: -----

#1 imaro  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 16-February 08

save current php web into .PDF

Post icon  Posted 18 March 2008 - 05:52 AM

i want to make a save button in my php web....when user click the button, the information that appear on the current php web will be save into .PDF format so that user can keep it as a soft copy...

can anyone help me???i hope i'll get the solution... :rolleyes:
Is This A Good Question/Topic? 0
  • +

Replies To: save current php web into .PDF

#2 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 4332
  • View blog
  • Posts: 12,127
  • Joined: 18-April 07

Re: save current php web into .PDF

Posted 18 March 2008 - 10:33 AM

Hello imaro,

If you are looking for a process to create a "snapshot" of the current page, I have never seen it done. However, if you are looking to take the text and dynamic content that created a page and put it into a new PDF file for export, then you only need to look as far as using the PDFlib library for PHP (a commercial product). It has a series of functions that creates PDFs and will allow you to export them to the user relatively easy.

If you are looking for something that is free and such you can check out the following addresses...

http://www.ros.co.nz/pdf/
http://www.fpdf.org/
http://www.gnuvox.com/pdf4php/
http://www.potentialtech.com/ppl.php

I hope this puts you on the right path to finding a good solution for your situation. :)
Was This Post Helpful? 0
  • +
  • -

#3 akozlik  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 90
  • View blog
  • Posts: 797
  • Joined: 25-February 08

Re: save current php web into .PDF

Posted 20 March 2008 - 03:24 PM

Martyr beat me to it. I've used fpdf a lot in the past, and I've found it to be pretty simple to use. There are tutorials on their site as well to help you get through the software.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1