Welcome to WebmasterWorld Guest from 50.19.0.90

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Creating PDF's on the Fly

     
7:03 am on Jun 17, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:Mar 20, 2008
posts: 172
votes: 0


Hi, I am running a site on a server with Centos installed and am having trouble finding the right module to install to enable the use of the pdf_new() functionality so I can create PDF's of HTML pages on the fly.

Which module am I supposed to install to get this working? Is there a recommended module?

Thanks in advance.
8:58 pm on June 18, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:Feb 22, 2009
posts:1396
votes: 0


Hi there Username,

What version of PHP does this server have on it? As a quick look on the manual states that it needs PHP v4 or greater... Just a thought there ;)

[uk2.php.net ]

Cheers,
MRb
9:31 pm on June 18, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:Mar 20, 2008
posts:172
votes: 0


Hi, the server has php 5, so should be no problems running the add on module. Question is which module needs to be installed?
7:49 am on June 19, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member penders is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:July 3, 2006
posts:3123
votes: 0


Have you checked the PDF Requirements [uk2.php.net] and PDF Installation [uk2.php.net] pages in the PHP manual - they appear to offer information on how to proceed? Sorry, I can't be more help than that.
10:17 am on June 19, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:Mar 20, 2008
posts:172
votes: 0


Thanks. It certainly seems that PDFLIb is the one. I will look into the commercial licensing costs though.
12:08 pm on June 19, 2010 (gmt 0)

Preferred Member

5+ Year Member

joined:Aug 18, 2008
posts:408
votes: 0


I will look into the commercial licensing costs though.


Before you do that, I'd recommend looking in to FPDF or TCPDF. Or there is also a Pear package "File_PDF" available which is based on FPDF.
2:11 pm on June 21, 2010 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12533
votes: 0


Another option is the open source project DOMPDF [code.google.com].