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

15,856

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

$> wkhtmltopdf http://superuser.com su.pdf
Share:
15,856
Tal Galili
Author by

Tal Galili

Statistics, blogging, and the hope for a happy long life.

Updated on September 18, 2022

Comments

  • Tal Galili
    Tal Galili over 1 year

    I see one solution so far:

    http://www.htmldoc.org/

    Are there any more out there which are suggested?

    • slhck
      slhck over 12 years
      HTMLDOC is the standard – any reason for not wanting to use it?
    • Tal Galili
      Tal Galili over 12 years
      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 :)
    • slhck
      slhck over 12 years
      I've searched for similar things but – at least on *nix systems, I've always got back to HTMLDOC :)
    • Johnny Baloney
      Johnny Baloney over 10 years
      @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").