How to convert a document of mht to jpeg image in a command line?

In the conversion of mht to jpeg,there are two programs you should pay attention to.One is cmd.exe in which you can input DOS commands,the other one is HTML Converter Command Line.

Cmd.exe

Cmd.exe is a DOS program.In reality,cmd.exe is a Windows program that acts as a DOS-like command line interpreter. It is generally compatible.cmd.exe is a 32-bit command prompt used in Windows NT, 2000, and XP and offers disk and file maintenance functions to your computer as well as network functions.It is a native program for the platform. This allows it to take advantage of features available to native programs on the platform that are otherwise unavailable to DOS programs.

HTML Converter Command Line

HTML Converter Command Line is a powerful HTML conversion product. It allows you to create previews or thumbnails of web pages in a number of different formats, such as TIF, TIFF, JPG, JPEG, GIF, PNG, BMP, PCX, TGA, JP2 (JPEG2000), PNM, etc. It also allows you to convert web pages to PDF, PS (postscript), WMF, EMF vector formats.

The Command Line application can be called from within ASP, VB, VC, Delphi, BCB, Java, .NET and COM+ etc. program languages. It uses advanced techniques to allow efficient asynchronous multithreaded operations.

If there is no HTML Converter Command Line in your computer,you can download one at the website http://www.verypdf.com/htmltools/htmltools.zip. It is a zip file and need to to unzipped before being use.

To avoid the disabled of some functions,you should register HTML Converter Command Line with the code which you get when buying the software in cmd.exe dialog box.

NOTE:Please register HTML Converter Command Line under the installation directory of it.

The following contents are the steps of how to convert mht to jpeg.You can read them carefully.

The most important step in this conversion is inputting command lines in cmd.exe dialog box.So first,you should run cmd.exe program.You can click “start”—“run” and input “cmd” in “open” edit box,then click “OK” button.You can also use the hot key “Window”+ “R” to realize the same function.

Then you will see cmd.exe dialog box appear.Please input the command line.The main command line structure is

“htmltools.exe” “input.mht” output.jpeg

It means called program,source file and target file.

We can analyse the command lines in this conversion.

"C:\Documents and Settings\admin\Local Settings\Temp\htmltools\htmltools.exe" "C:\Documents and Settings\admin\Desktop\Google.mht" google.jpg

"C:\Documents and Settings\admin\Local Settings\Temp\htmltools\htmltools.exe"   is the directory of called program.

"C:\Documents and Settings\admin\Desktop\Google.mht"  is the directory of source file.

If you don’t want to input so long paths,you can drag the files into cmd.exe dialog box directly,which is very convenient.

google.jpg  is the name of target file.

NOTE:If you don’t specify the directory of target file,the file will be saved in current directory.

Then you can find the target file in your computer after converting mht to jpeg.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Random Posts

This entry was posted in HTML Converter (htmltools). Bookmark the permalink.

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!