Batch convert all html files in a directory into pdf files in windows?

2

2

I see one solution so far:

http://www.htmldoc.org/

Are there any more out there which are suggested?

Tal Galili

Posted 2011-09-21T16:06:31.977

Reputation: 2 825

Question was closed 2015-07-25T00:36:01.407

HTMLDOC is the standard – any reason for not wanting to use it? – slhck – 2011-09-21T19:30:12.203

I just didn't know it was "The" standard - so I asked. But from your answer, I understand that I should not bother with alternatives :) – Tal Galili – 2011-09-21T20:27:31.967

I've searched for similar things but – at least on *nix systems, I've always got back to HTMLDOC :) – slhck – 2011-09-21T20:32:44.630

@slhck Two reasons - lack of support for unicode and css in the stable 1.8.27 release. However, they are apparently supported in v1.9b1 (the notes mention "basic support").

– Johnny Baloney – 2013-10-30T16:28:07.967

Answers

4

by using http://wkhtmltopdf.org/ you can do it like this:

$> wkhtmltopdf http://superuser.com su.pdf

akira

Posted 2011-09-21T16:06:31.977

Reputation: 52 754

0

One alternative to HTMLDOC is Prince.

PROs: Prince can handle most of CSS (which HTMLDOC can't) and use almost all fonts (where HTMLDOC PDFs contain only Helvetica, Times and Courier) and translate HTML/XML input into really well looking pages.

CONs: Unlike HTMLDOC, Prince isn't OpenSource software (though free as in beer for private use, putting a rather unobtrusive logo on PDF pages created with it).

PrinceXML is made by a small Australian company and seems to be also driving Google Docs' PDF output.

HTMLDOC is 'good enough' for most people's needs (and also provides quite a few features which Prince doesn't).

Kurt Pfeifle

Posted 2011-09-21T16:06:31.977

Reputation: 10 024