When starting PDF Mill from a command line such as a DOS prompt or bash, the following command is used
[JRE]\java.exe -jar pdfmill.jar [options]
[JRE] in above command denotes the directory the Java Runtime Environment (JRE) is stored on your computer. In place of [options] the parameters in below table can be used. PDF Mill runs quietly until creation of the destination PDF file is finalized which is when PDF Mill returns with message
--- PdfMill finished ---
|
option |
description |
|
-s |
source file path and name of the HTML file to transform to PDF |
|
-d |
destination file path and name of the PDF file to create. Existing files with the same name and location are overwritten. |
|
-fd |
font directory directory to embed fonts from |
|
-ht |
header text text that shall appear in the header on each page |
|
-hn |
header font name name of the font that shall be used to render the header |
|
-hs |
header font size size of the font that shall be used to render the header |
|
-ha |
header alignment alignment of the header, one of 'left', 'right' and 'center' |
|
-hno |
header page number 'on' if a page number shall be generated at the end of the header, 'off' if not |
|
-ft |
footer text text that shall appear in the footer on each page |
|
-fn |
footer font name name of the font that shall be used to render the footer |
|
-fs |
footer font size size of the font that shall be used to render the footer |
|
-fa |
footer alignment alignment of the header, one of 'left', 'right' and 'center' |
|
-fno |
footer page number 'on' if a page number shall be generated at the end of the header, 'off' if not |