By using the command line application recommended in this article, you can easily convert the document of PDF to webpage by command line. The name of the command line application is VeryPDF PDF to HTML Converter Command Line. This is a stand-alone application which does not need any third-party applications installed on your computer.
It is totally free to try PDF to HTML Converter Command Line by downloading the evaluation version of the application at its homepage. If you need to run the command line application on a server, you can purchase the sever license. If you want to redistribute this application into your developed program, the single use license will be a better choice.
After downloading the application to your computer, you just need to have the ZIP file unzipped to some location. No installation steps are needed; you can easily use the application instantly. The called program is the executable file pdf2html.exe in the unzipped package. Then please see the conversion steps below.
1. Please open MS-DOS interface.
For inputting the command line smoothly, you need to open MS-DOS interface at first. Please press the shortcut key “Window”+ “R” combination on the keyboard to open “Run” dialog box in which you can input “cmd” or “CMD” and click “OK” button.
2. Input the command line
If you don’t know how to write the command line for converting PDF to webpage, you can drag the executable file pdf2html.exe into MS-DOS interface and hit “Enter” button to see its usage. The command line template is like the following one:
pdf2html [options] <PDF-file> <HTML-file>
In the template, pdf2html stands for the called program. [options] is the parameter for realizing some functions. <PDF-file> stands for input PDF document and <HTML-file> stands for the output webpage document.
Then please see the following specific command line example:
pdf2html –f 1 –l 6 –onehtm C:\file-in.pdf D:\file-out.htm
pdf2html is the called program and you need to input its full path in the command line for calling it.
–f 1 is to convert the first page of PDF document as 1.
–l 6 is to convert the last page of PDF document as 6.
–onehtm is for creating one continuous html page.
C:\file-in.pdf is the path of source file.
D:\file-out.htm is the path of target file.
3. Run the conversion
If you finish inputting the command line, please hit “Enter” button to run the conversion from PDF to webpage.