Extract image of PDF to JPG

For sharing your PDF document with you friends online, a good method is to convert the document of pdf to html document at first and then unload the html document online. When you get the URL of this html document, you can send it to your friends and of course people all over the world can browse your document.

By using the application VeryPDF PDF to HTML Converter Command Line, not only can you realize the conversion from pdf to html, but also you can extract image of pdf to jpg just by using some easy commands. At the same time, you can also set the jpg image quality. If you want to use the application, please enter its homepage to download its free evaluation version and have a try of it.

There is no installation steps at all. Only extraction for the ZIP folder can help you use the application at once. The executable file pdf2html.exe is the called program in the conversion. For the application PDF to HTML Converter Command Line is a MS-DOS oriented and supported one, you need to open MS-DOS interface at first.

Please click “Start”—“Run” to open “Run” dialog box. In “Open” combo box of the dialog box, please input “cmd” or “CMD” into it and click “OK” button.

Then you need to input the command line into MS-DOS interface by following the command line sample below:

pdf2html [options] <PDF-file> <HTML-file>

From the sample you can see there are three necessary parts in the command line: the called programpdf2html, the source file <PDF-file> and the target file <HTML-file>. If you want to set different functions to the target file, please add [options] in the command line. There is an application command line about the sample in Figure 1 below:

convert pdf to html by command line

                                                                           Figure 1

The command line in the interface is

"C:\Program Files\pdf2html_cmd\pdf2html.exe" -quality 100 -imgformat 0 "C:\Documents and Settings\admin\Desktop\New Microsoft Word Document.pdf" C:\1.htm

Where

  1. "C:\Program Files\pdf2html_cmd\pdf2html.exe" is the path of called program pdf2html.exe.
  2. -quality 100 is to set jpg quality as 100. If you don’t assign value for this option, the default jpg quality is 95.
  3. -imgformat 0 is for extracting image of pdf to jpg. (1 is for png and 2 is for gif.)
  4. "C:\Documents and Settings\admin\Desktop\New Microsoft Word Document.pdf" is the path of input file.
  5. C:\1.htm is the specified output location.

Then please hit “Enter” button to run the conversion from pdf to html and you will see a new created folder with name “1” which is set in the command line. When you open it, you will see there is a jpg image named as “pg_0001.jpg” which is the extracted jpg image file and a html document named as “index.htm” which is the created html document. Please see it in Figure 2.

conversion result

                                                                            Figure 2

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!