-2

Possible Duplicate:
Convert HTML + CSS to PDF with PHP?
Which is the best PDF library for PHP?

I am trying to take the print out of a web page in pdf format.

How can this be done?

Community
  • 1
  • 1
user1030764
  • 11
  • 1
  • 3
  • Rather similar to your earlier question http://stackoverflow.com/questions/8207293/hwo-to-take-the-print-out-of-a-page-using-php – Verbeia Nov 21 '11 at 09:19
  • Did you perhaps try [searching your question](http://stackoverflow.com/search?q=how+to+take+print+out+of+a+page+in+pdf+format+using+php) first? – Nightfirecat Nov 21 '11 at 09:20

4 Answers4

1

You could use a free save to pdf tool http://www.dopdf.com/

If you then want to share this with othe people on your website then upload the file and link to it via href

<a href="file.pdf">download pdf</a>
Jonathan
  • 25,873
  • 13
  • 66
  • 85
Robbo_UK
  • 11,351
  • 25
  • 81
  • 117
1

Take a look at http://www.php.net/manual/en/book.pdf.php or http://www.fpdf.org/

Boby
  • 826
  • 5
  • 9
1

You need to use pdf generator library in your php file

Download it from http://sourceforge.net/projects/tcpdf/files/

See README.txt for installation instructions.

Jonathan
  • 25,873
  • 13
  • 66
  • 85
Anil Kumar
  • 11
  • 2
0

You can use one of these:

  1. FPDF
  2. TCPDF
  3. DOMPDF
Riz
  • 9,703
  • 8
  • 38
  • 54