The command line application VeryPDF PDF to HTML Converter Command Line is really a good application which can convert the document of document and can also extract the image of format image simultaneously. This article will put emphasis on the way about this problem.
Before working, you need to download the application from its homepage. When you get the free evaluation version of it, please unzip the ZIP file to some location of your computer and then the application will be runnable instantly.
Please see the following contents about the conversion and there are three steps you need to follow. The application PDF to HTML Converter Command Line is a MS-DOS oriented application, so you need to open MS-DOS command prompt window for inputting your commands.
You need to click “Start”—“Run” or use the shortcut key “Window”+ “R” to open “Run” dialog box and then please input “cmd” or “CMD” in “Open” combo box. Then please click “OK” button.
In the opened MS-DOS command prompt window, you need to input the command line like the following one which is the command line template for this application:
pdf2html [options] <PDF-file> <HTML-file>
To extract image of, you need to add an option in the command line “-imgformat 1”. Please see the following command line example:
pdf2html –imgformat 1 C:\A.pdf C:\A.html
In the command line,
pdf2html stands for the called program which is the executable file pdf2html.exe in unpacked package of the application.
–imgformat 1 is for extracting image of pdf to png.
- -imgformat 0 is to extract image of pdf to jpg.
- -imgformat 2 is to extract image of pdf to gif.
C:\A.pdf is the path of input pdf document.
C:\A.html is the path of target html document. (All related files about the html document will be saved in the folder “A”).
Then you need to press “Enter” button to run the conversion from. In the newly created folder “A”, you will see a png image named as pg_0001.png which is the image you want to get.
For your simply inputting the file path, you can directly drag the file you need into MS-DOS command prompt window. Or you can change the current directory of MS-DOS command prompt window to the unpacked directory of the app.
But this image is the one which combines all the images in your original pdf document. If you want to extract single image from pdf document to single image file, you can use the app VeryPDF PDF to Image Converter which can meet your requirements.