News for hackers. Stuff that matters.
Re:Ask HN: Any Need for Office to PDF Conversion API? by quizbiz on Sunday July 11, 2010 @12:30AM (#1504953)
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.
Re:Ask HN: Any Need for Office to PDF Conversion API? by pytxab on Sunday July 11, 2010 @01:53AM (#1505053)
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.
Re:Ask HN: Any Need for Office to PDF Conversion API? by yesimahuman on Sunday July 11, 2010 @02:31AM (#1505094)
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.
Re:Ask HN: Any Need for Office to PDF Conversion API? by jgresula on Sunday July 11, 2010 @08:32AM (#1505391)
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/

Re:Ask HN: Any Need for Office to PDF Conversion API? by jacobolus on Sunday July 11, 2010 @01:05AM (#1504995)
If you can afford it, take a look at Prince XML.
Re:Ask HN: Any Need for Office to PDF Conversion API? by xenoterracide on Sunday July 11, 2010 @12:54AM (#1504984)
coldfusion has that pretty much built in...
Re:Ask HN: Any Need for Office to PDF Conversion API? by ecaron on Sunday July 11, 2010 @01:07AM (#1504999)
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).

Re:Ask HN: Any Need for Office to PDF Conversion API? by jcnnghm on Sunday July 11, 2010 @12:59AM (#1504988)
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.