HTML to PDF converter Usage: htop [OPTIONS] [COMMAND] Commands: single Convert single HTML file to PDF file multiple Convert multiple HTML files to multiple PDF files url Convert single HTML page to PDF file help Print this message or the help of the given subcommand(s) Options: -b, --print-background Prints the page background. When this option is present, the output PDF file will contain the background filled just like the input HTML file or website. --print-header-footer Prints the header and footer. When this option is present, the header and footer will be printed to PDF file. When no custom header and/or footer is set, then the default Chromium's header and/or footer is printed. --header
Sets custom header. This option defines custom HTML template for the print header. This template must be valid HTML markup with the following classes used to inject printing values into them: date - formatted date of printing, title - document title, url - document location, pageNumber - current page number, totalPages - total number of pages in the document. The same rules are valid for --footer option. --header-file Loads custom header from file. This option defines custom HTML template for the print header loaded from file. See --header option for a detailed description of the HTML template. --footer