4 ms·
I know I am dealing with a client that wants to turn web pages into good looking PDFs ready to print and ready for review by a boss.
by quizbiz 16y ago
I know I am dealing with a client that wants to turn web pages into good looking PDFs ready to print and ready for review by a boss.
- xenoterracide 16y agocoldfusion has that pretty much built in...
- ecaron 16y agoThis is actually the only reason we're still running a ColdFusion server. About once every 6 months I look at the options out there, but until the FSF gets the momentum going behind GNU PDF (http://www.fsf.org/campaigns/priority-projects/ http://www.fsf.org/campaigns/priority-projects/), I think CFM'll still rule the roost. We also rely on pieces like OOONinja's ODF converter to cope with .docx files (http://katana.oooninja.com/w/odf-converter-integrator http://katana.oooninja.com/w/odf-converter-integrator).
- jcnnghm 16y agoI did something similar to this some time ago. There is software that will convert from html to postscript (html2ps), and then there is the ps2pdf project which will convert the postscript to a pdf file. I had success with this approach, though I had to tune my html and a number of ghostscript settings to get it to produce exactly the output that I wanted.
- jacobolus 16y agoIf you can afford it, take a look at Prince XML.
- pytxab 16y agoThe best way by far is wkhtmltopdf, because it uses webkit to render the page. Most other open source projects use a toy HTML renderer, which is not going to work for in-the-wild webpages.
- yesimahuman 16y agoThanks for that link. Right now I'm doing something similar using a modified version of webkit2png.py that outputs into PDF instead. I'll have to check this out.
- jgresula 16y agoA shameless plug for my project, but hopefully you might find it useful. I run http://pdfcrowd.com http://pdfcrowd.com which is an online service providing html to pdf API. It lets you convert a web page to pdf quite easily - have look at examples at http://pdfcrowd.com/doc/api/ http://pdfcrowd.com/doc/api/