To know how to print web page and set paper size for printer with command line on Windows platforms, please keep reading this article here.
In this article, our main tool is VeryDOC HTML to Any Converter, which allows Windows users to print local or online web page files to various formats files due to set printer in your computer. Besides, it supports editing targeting properties, e.g., HTML margin, paper size in selected printer, etc.. With this application, many side-function could be realized in Windows systems.
The following steps are about details to use this software to set paper size for printer when printing web page with commands and parameters:
Step1. Download
Please click following icon to download package of this application, then open it and extract its content to your computer:
Then, trial version of this software can be in your computer and you can use it in later process directly.
Step2. Run
After trial version of this application is yours, please follow steps below to open command prompt window, which is running environment of commands:
Click Start on your screen > select Run on pop menu > input cmd.exe and click ok, then, command prompt window could be opened directly.
Step3. Process
Please input commands and parameters in your own command prompt window referring to following example:
html2any.exe -paper "612x792pt" C:\test1.htm
html2any.exe -paper "215.9x279.4mm" https://www.verydoc.com
where you need to know:
-
-paper <string>: set paper size to printer
number: standard paper size
others: user defined paper size -
html2any.exe is to call executive file “html2any.exe” for using this software
-
C:\test1.htm is to specify input local web page
-
https://www.verydoc.com is to specify source online web page through URL
When you finish inputting commands and relevant parameters, you can use VeryDOC HTML to Any Converter to set paper size for printer during printing web page file.
Here is the end of this article, and to know other illustration about different functions of VeryDOC HTML to Any Converter, please visit here frequently here.