How to convert Excel website reports of HTML to PDF formats for presentations?

When you need to convert Excel website reports of HTML to PDF, maybe you can have a free trial of software VeryPDF HTML Converter. This software can help you convert HTML to PDF keeping original layout and formats fast and accurately. When conversion, this software also allows you to choose output layout, add watermark, specify margins and others. In the following part, I will show you how to use this software.

First, download HTML Converter Command Line

  • There are two versions of this software: GUI version and command line version. You can download the proper version according to your needs. Here I will take the command line version for example.
  • When downloading finishes, there will be a zip file. Please unzip it to some folder then you can call the executable file in MS Dos Windows.

Second, convert HTML to PDF

    • When converting HTML to PDF, please refer to the usage and examples of this software.
    • Here is the 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 -width 612 -height 792 -pageheight 792 C:\in.htm C:\out.pdf
htmltools.exe -width 612 -height 792 -ph 792 C:\in.htm C:\out.pdf
By those above command line, we can convert HTML to PDF and specify width and height. Meanwhile you can specify the HTML height to be converted. This function is good when converting long HTML file to PDF.
htmltools.exe -nocenter -width 612 -height 792 -breakpagebytext "Break page at here" "C:\in.htm" C:\out.pdf
By this command line, we can convert HTML to PDF and set break text at "Break page at here" and don't center the contents in the PDF file.
htmltools.exe -nocenter -playemf2 -width 612 -height 792 -delbreakpagetext -breakpagebytext "Break page at here" "C:\in.htm" C:\out.pdf
By this command line, we can use PlayEnhMetaFileEx function to play EMF file and then convert HTML to PDF.
htmltools.exe -nocenter -playemf2 -width 612 -height 792 -delbreakpagetext -breakpagebytext "Break page at here" -emfheight 792 "C:\in.htm" C:\out.pdf
By this command line, we can split a long EMF file by this height and set text break at "Break page at here".
htmltools.exe -proxy 127.0.0.1:7070 "http://www.verypdf.com" out.pdf
By this command line, we can set proxy for IE connection and convert online website to PDF directly through URL.

Now let us check related parameters:
-proxy <string>           : Set proxy for IE connection
-proxy-exception <string> : Set proxy exception for IE connection
-htmllevel <int>          : Set link's level for HTML conversion
-emfheight <int>          : Split a long EMF file by this height
-breakpagebytext <string> : Split a long HTML page by string
-delbreakpagetext         : Delete string of -breakpagebytext from output PDF file, this option is only work with -playemf2

So by those functions, we can convert Excel website reports of HTML to PDF formats for presentations easily as it can stop at any height of HTML to keep table intact after conversion. 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!