How to print HTML/MHTML/web page to image/PDF(PS/PDF/JPG/BMP/PNG/TIFF/GIF)

In this article, I would like to tell you how to print HTML/MHTML/web page to image and web page to PDF(PS/GIF/TIFF/PNG/BMP/JPG) in Windows systems.

Firstly, you need to know our main processing tool for conversion above – VeryDOC HTML to Any Converter, which is a professional command line application helping you convert HTML/web page/MHTML to image or PDF variously and flexibly. This utility is handy and powerful, which also enable developers to use it in any programming or scripting languages, e.g., ASP, PHP, C#, .NET, VB, C/C++, Delphi, etc.. To know how to use this application to accomplish conversion, please see the followings:

1. Download application

You need to download package of this application to your computer, then, open it and extract its content to your computer directly, and then, trial version of this software is in your computer so that you can use it directly for later process.

Download VeryDOC HTML to Any Converter

2. Print HTML/MHTML/web page file to image or PDF

After you run cmd.exe in your computer, command prompt window can pop on screen, where you can refer to following examples to fulfill conversion:

html2any.exe -printtopdf C:\out7.pdf

html2any.exe "C:\Documents and Settings\admin\Desktop\htmlprint-to-any.html"

where you need to know:

  • html2any.exe is to run this software through calling executive file “html2any.exe” here
  • -printtopdf is to print HTML/URL to file of PDF
  • C:\out7.pdf is to specify output PDF file
  • is to specify printing online web page – URL
  • "C:\Documents and Settings\admin\Desktop\htmlprint-to-any.html" is to specify input HTML file

Note: As you can see, the first example is to show you how to print online web page – URL to pdf, likely, you can change that parameter “-printtopdf” to another parameter, e.g., “-printtoemf”, which is to help you print web page to EMF file due to targeting file extension as .emf, etc.. And, the second example is to help you print local web page of HTML according to selected virtual printer.

After you print web page file to image or PDF file like above, targeting PDF file or image files could be produced directly.

Here is illustration about how to use VeryDOC HTML to Any Converter to print HTML/MHTML/URL/web page file to image file or PDF file through commands above. For other practical functions, please visit here frequently. Thank you for your support here.

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!