John Hunt
John Hunt

Reputation: 4072

PDF generation in PHP 4.3.2 :(

I'm faced with having to generate some fairly basic PDFs on a server which is running php 4.3.2 unfortunately.

So that pretty much renders most things impossible such as google's domPDF etc.. PDFlib is not compiled in so I can't use any of that either.

Does anyone have any suggestions?

Thanks!

Upvotes: 1

Views: 303

Answers (4)

Paul Schreiber
Paul Schreiber

Reputation: 12589

You didn't mention if you were generating these from scratch or from existing PDF data. pdftk is a handy PDF manipulation library. You can shell out to it from PHP.

Upvotes: 0

Julie
Julie

Reputation: 44

You could try out DocRaptor.com, which is a webservice that will let you convert html to pdf.

Upvotes: 2

John Hunt
John Hunt

Reputation: 4072

I ended up using an older version of fpdf and HTML2PDF (from the link below.) It's certainly not ideal, but then neither is a 7 year old version of php.

http://www.macronimous.com/resources/Converting_HTML2PDF_using_PHP.asp

Upvotes: 0

Jasdeep Singh
Jasdeep Singh

Reputation: 3326

use this R&OS PDF Class to achieve this task.. This is fairly simple and light weight class and requires no module etc to be installed on the server.

Upvotes: 2

Related Questions