How to convert HTML to PDF and then split PDF to single pages?

    When you need to convert HTML to PDF and then split PDF file to single pages for easy checking or uploading, please refer the following article. Normally speaking, you need to buy two software to finish those two tasks. However, now those two missions can be done by one software through command line. It is VeryPDF HTML Converter Command Line, which allows you to convert HTML to PDF and then edit PDF in various aspects like set password, merge or split PDF , add basic information or others. In the following part, I will show you how to convert HTML to PDF and then split PDF to single pages.

Step 1. Convert HTML to PDF

  • Please download HTML Converter Command Line. You can rest assured to download it as all the VeryPDF software are free downloading and trying, there will be no fee produced before you decide to pay for it.
  • When downloading finishes, please unzip the downloaded file and then find the executable file, help documents.
  • When converting HTML to PDF, please refer to the usage and examples.
  • Usage:   htmltools [options] <EMF-WMF-HTML-URL-RTF-file> [<PDF-PS-Image-file>]
  • When converting HTML to PDF, please refer to the following command line templates.
  • htmltools.exe -wtext "VeryPDF" "C:\in.html" C:\out.pdf
    htmltools.exe -wtext "VeryPDF" -wc "0000FF" "C:\in.html" C:\out.pdf
    htmltools.exe -wtext "VeryPDF" -wx 100 -wy 100 "C:\in.html" C:\out.pdf
    htmltools.exe -wtext "VeryPDF" -wtype 1 "C:\in.html" C:\out.pdf
    htmltools.exe -wtext "VeryPDF" -wtype 2 "C:\in.html" C:\out.pdf
    htmltools.exe -wtext "VeryPDF" -wtype 0 -wa 45 "C:\in.html" C:\out.pdf
    Related Parameters:
    -wtext <string>           : Watermark on printed document
      -wtype <int>              : Type of watermark
        0 : normal watermark
        1 : watermark on header
        2 : watermark on footer
      -wf <string>              : Font name of watermark
      -wh <int>                 : Font size of watermark
      -wb                       : Specify bold font
      -wi                       : Specify an italic font
      -wu                       : Specify an underlined font
      -ws                       : Specify a strikeout font
      -wa <int>                 : Angle of watermark
      -wbox <string>            : a rectangle to output formatted text, it is only useful for "-walign" option, eg:
            -wbox "0,0,595,842"
            -wbox "0,0,612,792"
            -wbox "auto"

By this software, you can convert HTML to PDF and add various watermarks. If you need to know more about watermark parameters, please check in the parameter list. As there are too many, I can not list all of them here.

Step 2. Split PDF to single page

  • When you need to split PDF file, please refer to following command line template.
    -burstpdf <string>        : Burst PDF file into single page PDF files
    htmltools.exe -burstpdf C:\out.pdf
    By this command line, we can split PDF file into single page PDF file.

So by this software, we can convert HTML to PDF and add watermark. Then we can split PDF file into single pages. 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

This entry was posted in HTML Converter (htmltools) and tagged , . Bookmark the permalink.

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!