HTML to PDF Conversion

Was looking for a way to generate a PDF catalog for ChopperStickers.com so that visitors could download and print out a catalog of all the stickers we have available on the site. Doing some searching around I came across RustyParts HTML_ToPDF PHP class.

Took some tweaking around and I had to install GhostScript and the GhostScript fonts but I got it working and I think it came out pretty nice.

I created a php script to generate a catalog of all the stickers I currently have available, then I pass that to a php script that generates the my pdf catalog. It can be done on the fly but that takes a bit and uses up quite a bit of server resources so I have a cron script that generates an updated catalog once a week.

If you are looking for away to convert other documents to PDF check out this handy online tool. It has a filesize limit of 2MB but other than that it is pretty nice. I have used it to convert the VFR Newsletter from MS Publisher to PDF and it works great.


Technorati:


Leave a Reply