How to convert HTML to PDF and add bookmark by command line?

In this article, I will show you one method of converting HTML to PDF and add bookmark by command line. It is known that a Bookmark is a thin marker, which can help keep the reader's place in a book and to enable the reader to return to it with ease. So it is as PDF bookmark, which can make the PDF file more easy to read. VeryPDF HTML Converter has such function of converting HTML to PDF and add bookmark. In the following part, I will show you how to use it.

Step 1. Download HTML Converter Command Line

  • All the VeryPDF software are free downloading and trying, so you can rest assured to evaluate it.
  • There are two versions of this software stated on website, please download the command line version. If you are not familiar with command line version software, please download the GUI version.
  • When downloading finishes, there will be a zip file. Please extract it to some folder then you can find the executable file and call it in MS Dos Windows.

Step 2. Convert HTML to PDF and add bookmark

  • Here is rules and usage for your reference: htmltools [options] <EMF-WMF-HTML-URL-RTF-file> [<PDF-PS-Image-file>]
  • When converting HTML to PDF and add bookmark, please refer to the following command line templates.
    htmltools.exe -bookmark 1 C:\in.html C:\out.pdf
    By this command line, we can convert HTML file PDF and add bookmark by short filename.
    htmltools.exe -bookmark 2 C:\in.emf C:\out.pdf
    By this command line, we can convert EMF file to PDF and add bookmark by file full filename.
    htmltools.exe -bookmark 3 C:\in.html C:\out.pdf
    By this above command line,we can convert HTML to PDF and add bookmark by short filename without suffix.
    This software provides three modes of adding bookmarks, please refer to the following parameters.
  • -bookmark <int>           : Create bookmark to PDF file
            -bookmark 1: Use short filename as bookmarks
            -bookmark 2: Use full filename as bookmarks
            -bookmark 3: Use short filename without suffix as bookmarks

  • This software also allows you to convert HTML to PDF and add basic information for output PDF file like title, keywords, subject and others. Now let us check related parameters you may use.
  • -postdatafile <string>    : Read long postdata parameter from a disk file
      -producer <string>        : Set 'producer' to PDF file
      -creator <string>         : Set 'creator' to PDF file
      -subject <string>         : Set 'subject' to PDF file
      -title <string>           : Set 'title' to PDF file
      -author <string>          : Set 'author' to PDF file

This function is just a slice of this software. If you need to know more about it, please visit its homepage. During the using, if you have any question, please contact us as soon as possible.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!