Create PDF without PHP library?

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
eblackwell
Forum Newbie
Posts: 19
Joined: Mon Oct 10, 2011 3:19 pm

Create PDF without PHP library?

Post by eblackwell »

Our web host (Host Rocket) refuses to load the PDF library. Is there another way to create PDFs within PHP without installing something on the server? I think not, since it's a server side activity, so anything like FPDF would need installation too.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Create PDF without PHP library?

Post by Celauran »

FPDF doesn't require any sort of installation, just a few include files.
apexNSW
Forum Newbie
Posts: 2
Joined: Tue Apr 17, 2012 3:19 pm

Re: Create PDF without PHP library?

Post by apexNSW »

I have used the stand-alone PDF library from, http://ros.co.nz/pdf/ . You just have to upload the 2 class files to your website, there is nothing to install. The documentation is easy to understand and it can be used to make fairly complex PDF documents. I have use it for years to create PDF invoices that are emailed to clients and haven't had any issues.

Regards,
apexNSW
x_mutatis_mutandis_x
Forum Contributor
Posts: 160
Joined: Tue Apr 17, 2012 12:57 pm

Re: Create PDF without PHP library?

Post by x_mutatis_mutandis_x »

Check out HTML2PDF, built using FPDF library. Should be relatively easy to use compared to FPDF.

http://html2fpdf.sourceforge.net/
Post Reply