How to print HTML using more than 100 standard paper types?

  Recently  some customers ask that how to print HTML to A4 paper. Here I will share one of methods about how to print long HTML to more than 100 standard paper types. I do the printing job by script under the help of software VeryDOC HTMLPrint to Any Converter.

Step 1. Download HTMLPrint to Any Converter

  • This software is requisite element of the conversion. And the downloading is totally free, please rest assured to download it and have a free trial.
  • After downloading, it is zip file. Please extract it to some folder then you can check the elements in it.

Step 2. Print HTML to standard paper types

  • Please use this software in compliance with the usage and example. This software either support HTML file or URL as input.

Usage: html2any.exe [options] <HTML/MHTML file or URL>
Examples

  • When you need to use this software to specify the paper types, please know some paper definition of it. If you need to know more, please check here.
  • /* paper selections */
    #define DMPAPER_FIRST                DMPAPER_LETTER
    #define DMPAPER_LETTER               1  /* Letter 8 1/2 x 11 in               */
    #define DMPAPER_LETTERSMALL          2  /* Letter Small 8 1/2 x 11 in         */
    #define DMPAPER_TABLOID              3  /* Tabloid 11 x 17 in                 */
    #define DMPAPER_LEDGER               4  /* Ledger 17 x 11 in                  */
    #define DMPAPER_LEGAL                5  /* Legal 8 1/2 x 14 in                */
    #define DMPAPER_STATEMENT            6  /* Statement 5 1/2 x 8 1/2 in         */
    #define DMPAPER_EXECUTIVE            7  /* Executive 7 1/4 x 10 1/2 in        */
    #define DMPAPER_A3                   8  /* A3 297 x 420 mm                    */
    #define DMPAPER_A4                   9  /* A4 210 x 297 mm                    */
    #define DMPAPER_A4SMALL             10  /* A4 Small 210 x 297 mm              */
    #define DMPAPER_A5                  11  /* A5 148 x 210 mm                    */
    #define DMPAPER_B4                  12  /* B4 (JIS) 250 x 354                 */
    #define DMPAPER_B5                  13  /* B5 (JIS) 182 x 257 mm              */
    #define DMPAPER_FOLIO               14  /* Folio 8 1/2 x 13 in                */
  • Say when you need to specify the A4 paper type, please refer to the following command line.
    html2any.exe -printer "Adobe PDF" -paper "215.9x279.4mm" C:\test.htm
    html2any.exe -printer "docPrint" -paper "612x792pt" –orient 
    https://www.verydoc.com
    -printer <string>       : printer name to print
  • number : standard paper size
    others : user defined paper size
    -orient <int> : select the orientation of the printer paper,
        1 is portrait (default) and 2 is landscape
    -duplex <int>           : select duplex or double-sided printing for printers capable of duplex printing.

  • By the following command line, you can print HTML file to double-sided printing for printers. And you can print it to monochrome.
    html2any.exe -duplex 3 -color 1 C:\test.htm
  • color <int>  : specify color or monochrome to printer,
        1 : monochrome
        2 : color

By those function, you can print HTML to standard paper formats and do other setting about printing. 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!