News for hackers. Stuff that matters.
Re:Pdf2htmlEX – Convert PDF to HTML without losing text or f... by ComputerGuru on Sunday May 05, 2013 @11:26AM (#5658573)
Can anyone recommend an equally good opposite (HTML to PDF)?

wkhtmltopdf [0] is probably the most popular, but it's also ridiculously buggy.

0: https://code.google.com/p/wkhtmltopdf/

Re:Pdf2htmlEX – Convert PDF to HTML without losing text or f... by SigmundA on Sunday May 05, 2013 @11:53AM (#5658687)
http://phantomjs.org/ is the best so far in my experience since it handles all the client side javascript properly.

The PDF's it outputs are full vector not just rasters, it the same engine used in Chrome to view PDF's and print web pages from my understanding.

Re:Pdf2htmlEX – Convert PDF to HTML without losing text or f... by rgrieselhuber on Sunday May 05, 2013 @02:51PM (#5659315)
We've tried everything, including PrinceXML, and PhantomJS has been the best for us so far.
Re:Pdf2htmlEX – Convert PDF to HTML without losing text or f... by syaramak on Sunday May 05, 2013 @01:35PM (#5659066)
Not open source, but you might want to check out PrinceXML. It is really good.
Re:Pdf2htmlEX – Convert PDF to HTML without losing text or f... by ars on Monday May 06, 2013 @12:12AM (#5660853)
Print the HTML document to a postscript printer, but have it print to file.

Then use ps2pdf from ghostscript.

You can automate this with a small amount of work.

Re:Pdf2htmlEX – Convert PDF to HTML without losing text or f... by columbo on Sunday May 05, 2013 @07:44PM (#5660242)
Flying Saucer worked great for me: http://code.google.com/p/flying-saucer/
Re:Pdf2htmlEX – Convert PDF to HTML without losing text or f... by pchivers on Sunday May 05, 2013 @06:52PM (#5660096)
I've had good results with htmldoc (http://www.msweet.org/projects.php?Z1).
Re:Pdf2htmlEX – Convert PDF to HTML without losing text or f... by Samuel_Michon on Monday May 06, 2013 @12:42AM (#5660924)
In OS X, you can print to PDF from every application.