Apryse's PDF2Word is a command-line application designed to convert PDF documents to Word files while preserving the fonts and formats of the PDF. This section covers the basic usage of PDF2Word, explaining all of the available options.
The basic command-line syntax is:
pdf2word [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 PDF2Word 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 PDF2Word.
Note:
pdf2word -in my.pdf -out my.docx
Notes:
pdf2word -in my.pdf -out outDOCX.docx
Notes:
pdf2word -output rtf -in my.pdf -out outRTF.rtf
Notes:
pdf2word -password MyPDFPassword -in my.pdf -out myDOC.doc
Notes:
pdf2word -pages 1-2 -in my.pdf -out my.docx
Notes:
pdf2word -in *.pdf
'.pdf2word -in a.pdf b.pdf c.pdf -out a.doc b.doc c.doc
To provide additional feedback, PDF2Word 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