Skip to content
A command-line HTML-to-PDF converter for Mac OS X
Find file


A simple command line tool for Mac OS X. html2pdf converts HTML files to PDFs using the WebKit rendering engine.

Inspiration and a little bit of code from monkeeboi's MacPython script


html2pdf [options] htmlfile.html [htmlfile2.html ...]

  • --papersize=PAPERSIZE, -s PAPERSIZE: Specify a paper size preset to use. Currently, html2pdf supports the following paper sizes: 4x6, 3x5, letter.


  • Support more paper sizes; possibly user-configurable using a plist?
  • Support asymmetric margins
Something went wrong with that request. Please try again.