Apryse's PDF2HTML is a command-line application designed to convert PDF documents to HTML files while preserving the contents of the PDF. This section covers the basic usage of PDF2HTML, explaining all of the available options.
The basic command-line syntax is:
pdf2html [options] -in inputfile -out outputfile
The '-in' parameter can be abbreviated as '-i', and the '-out' parameter can be abbreviated as '-o'.
If you are calling PDF2HTML from the console or a BAT file, you may use relative file names. However, if you are calling it from an application or a server, you should be using absolute file names.
See more options in Command-Line Summary for PDF2HTML.
Note:
pdf2html -in my.pdf -out my.html
Notes:
pdf2html -in my.pdf -out myOut.html
Note:
pdf2html -in my.pdf -out outHTM.htm
Notes:
pdf2html -password MyPDFPassword -in my.pdf -out myOut.html
Notes:
pdf2html -pages 1-2 -in my.pdf -out my.html
Notes:
pdf2html -in *.pdf
'.pdf2html -in a.pdf b.pdf c.pdf -out a.html b.html c.html
To provide additional feedback, PDF2HTML returns exit codes after completing processing. The exit codes can be used to provide user feedback, for logging, etc. This is particularly important for applications running in an unattended environment.
The following table lists possible exit codes and their descriptions:
All codes other then '0' indicate that there was an error during the conversion process.
The following illustrates a sample Windows batch script that processes exit codes:
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales