Hacker News new | past | comments | ask | show | jobs | submit login

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.



The 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.


Thanks 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.


A shameless plug for my project, but hopefully you might find it useful.

I run 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/


If you can afford it, take a look at Prince XML.


coldfusion has that pretty much built in...


This 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/), 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).


I 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: