How to convert HTML to PDF using letter paper format in portrait mode?

In this article, I will show you how to convert online website HTML file to PDF using letter paper format in portrait mode. The software I use is named as VeryDOC Doc Converter COM, by which you can convert files of Microsoft Word, PowerPoint, Excel, JPG, PNG, GIF, HTML and others to PDF by script together with other application like VB, VC, C# etc. 

When you use this software, please make sure you have the following software installed:PDFcamp Pro V1.8 or newer, Windows Internet Explorer 5.0 or newer. When you need to convert Office file to PDF or image, please make sure you have Microsoft Office 97 or newer installed.  Please check more information of this software on homepage, in the following part, let us check how to use this software.

Step 1. Free download Doc Converter COM

  • This is software component, by this software you can call the conversion from HTML to PDF together with any programming or scripting languages, such as Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc using the COM object (or DLL Library, or Command Line).
  • For uploading easily, we have compressed it to zip file. When downloading finishes, please extract it to some folder then you can find help documents and related documents.

Step 2. Convert HTML file to PDF using letter paper format in portrait mode.

  • When using this software to convert HTML to PDF using letter paper format in portrait mode.
  • Use Letter paper in portrait mode,
    html2pdf.exe "http://www.google.com" "C:\google.pdf" "papertype=0"

    Please check more examples in the following part.

    Use Letter paper in landscape mode,
    html2pdf.exe "http://www.google.com" "C:\google.pdf" "paperType=9,pageWidth=792,pageHeight=612"
    Use A4 paper in portrait mode,
    html2pdf.exe "http://www.google.com" "C:\google.pdf" "papertype=7"
    Use A4 paper in landscape mode,
    html2pdf.exe "http://www.google.com" "C:\google.pdf" "paperType=9,pageWidth=842,pageHeight=595"
    Use A3 paper in portrait mode,
    html2pdf.exe "http://www.google.com" "C:\google.pdf" "papertype=6"
    Use A3 paper in landscape mode,
    html2pdf.exe "http://www.google.com" "C:\google.pdf" "paperType=9,pageWidth=1190,pageHeight=842"
    Use A1 paper,
    html2pdf.exe "http://www.google.com" "C:\google.pdf" "paperType=9,pageWidth=1684,pageHeight=2384"
    Use A2 paper,
    html2pdf.exe "http://www.google.com" "C:\google.pdf" "paperType=9,pageWidth=1191,pageHeight=1684"
    Use A3 paper,
    html2pdf.exe "http://www.google.com" "C:\google.pdf" "paperType=9,pageWidth=842,pageHeight=1191"
    Use A4 paper,
    html2pdf.exe "http://www.google.com" "C:\google.pdf" "paperType=9,pageWidth=595,pageHeight=842"
    You can select more paper types for "papertype" value,
    ~~~~~~~~~~~~~~~~~
            Set page type, the value is from 0 to 9,
            0         "Letter [8.5 x 11 in]",
            1         "Legal [8.5 x 14 in]",
            2         "Executive [7.25 x 10.5 in]",
            3         "Ledger [355.6 x 215.9 mm]",
            4         "Tabloid [11 x 17 in]",
            5         "Screen [10 x 7.5 in]",
            6         "A3 [297 x 420 mm]",
            7         "A4 [210 x 297 mm]",
            8         "A5 [148 x 210 mm]",
    ~~~~~~~~~~~~~~~~~

If you need to know more functions and examples of this software, please read help document. 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!