Convert PDF to webpage by command line

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.

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

5 Replies to “Convert PDF to webpage by command line

  1. I have done this with no results. I have placed the pdf2html.exe in a folder C:\\Testit\\
    I also have file Rampart5.pdf in that folder. I have tried these two commands but all I get is a quick dos window flash but with no error and no results.

    C:\\Testit\\pdf2html.exe -onehtm C:\\Testit\\Rampart5.pdf C:\\Testit\\Rampart5.htm

    C:\\Testit\\pdf2html.exe \”-$\” \”product key here\” -onehtm C:\\Testit\\Rampart5.pdf C:\\Testit\\Rampart5.htm

    Any ideas why? I have made sure the folder gives RW authority to all.

    VA:F [1.9.20_1166]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.20_1166]
    Rating: 0 (from 0 votes)
  2. Those commands entered in my previous post did not have all those \. Not sure why the editor put them in.

    VA:F [1.9.20_1166]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.20_1166]
    Rating: 0 (from 0 votes)
  3. I’m going to try this again. This is how I entered the command…

    C:\Testit\pdf2html.exe -onehtm C:\Testit\Rampart5.pdf C:\Testit\Rampart5.htm

    VA:F [1.9.20_1166]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.20_1166]
    Rating: 0 (from 0 votes)
  4. Could you please send us a ticket with details to support@verypdf.com? then we will try to solve it for you at once.

    VN:F [1.9.20_1166]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.20_1166]
    Rating: 0 (from 0 votes)
  5. Ticket – #112195

    VA:F [1.9.20_1166]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.20_1166]
    Rating: 0 (from 0 votes)

Leave a Reply to Ruth Cancel 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!