You need to specify atleast one input file, and exactly one output file Use - for stdin or stdout Usage: wkhtmltopdf [OPTION]... [more input files] converts htmlpages into a pdf Options: -b, --book Set the options one would usualy set when printing a book. --cover Use html document as cover. It will be inserted before the toc with no headers and footers. -H, --default-header Add a default header, with the name of the page to the left, and the page number to the right, this is short for: --header-left='[webpage]' --header-right='[page]/[toPage]' * --top 2cm --header-line. -n, --disable-javascript Do not allow webpages to run javascript. -d, --dpi Change the dpi explicitly. --enable-plugins Enable installed plugins (such as flash. --encoding Set the default text encoding, for input. --footer-center Centered footer text. --footer-font-name Set footer font name (default Arial). --footer-font-size Set footer font size (default 11). --footer-left Left aligned footer text. --footer-line Display line above the footer. --footer-right Right aligned footer text. -g, --grayscale PDF will be generated in grayscale. --header-center Centered header text. --header-font-name Set header font name (default Arial). --header-font-size Set header font size (default 11). --header-left Left aligned header text. --header-line Display line below the header. --header-right Right aligned header text. -h, --help Display help. -l, --lowquality Generates lower quality pdf/ps. Useful to shrink the result document space. -B, --margin-bottom Set the page bottom margin (default 10mm). -L, --margin-left Set the page left margin (default 10mm). -R, --margin-right Set the page right margin (default 10mm). -T, --margin-top Set the page top margin (default 10mm). --no-background Do not print background. -O, --orientation Set orientation to Landscape or Portrait. --outline Put an outline into the pdf. --outline-depth Set the depth of the outline (default 4). --page-offset Set the starting page number (default 1). -s, --page-size Set pape size to: A4, Letter, ect.. --password HTTP Authentication password. --print-media-type Use print media-type instead of screen. -p, --proxy Use a proxy. -q, --quit Be less verbose. --redirect-delay Wait some miliseconds for js-redirects (default 200). -t, --toc Insert a table of content in the beginning of the document. --toc-depth Set the depth of the toc (default 3). --toc-font-name Set the font used for the toc (default Arial). --toc-header-fs The font size of the toc header (default 15). --toc-header-text The header text of the toc (default Table Of Contents). --toc-l1-font-size Set the font size on level 1 of the toc (default 12). --toc-l1-indentation Set indentation on level 1 of the toc (default 0). --toc-l2-font-size Set the font size on level 2 of the toc (default 10). --toc-l2-indentation Set indentation on level 2 of the toc (default 20). --toc-l3-font-size Set the font size on level 3 of the toc (default 8). --toc-l3-indentation Set indentation on level 3 of the toc (default 40). --toc-no-dots Do not use dots, in the toc. --user-style-sheet Specify a user style sheet, to load with every page. --username HTTP Authentication username. -V, --version Output version information an exit. Proxy: By default proxy information will be read from the environment variables: proxy, all_proxy and http_proxy, proxy options can also by specified with the -p switch := "http://" | "socks5://" := (":" )? "@" := "None" | ? ? (":" )? Header and footer text: In a header or footer text the following variables can be used * [page] Replaced by the number of the pages currently beeing printed * [fromPage] Replaced by the number of the first page to be printed * [toPage] Replaced by the number of the last page to be printed * [webpage] Replaced by the url of the page beeing printed * [section] Replaced by the name of the current section * [subsection] Replaced by the name of the current subsection Mail bug reports and suggestions to .