Apryse PDF2XPS is a command-line application designed to convert PDF documents to XPS files while presenting several options to control resolution and quality. This section covers the basic usage of PDF2XPS explaining all of the available options.
The basic command-line syntax is:
pdf2xps [options] file1 file2 folder1 file3 ...
See more options in Command-Line Summary for PDF2XPS
Notes:
pdf2xps my.pdf
Notes:
pdf2xps --openxps --verb 2 -o ex1 my.pdf
Notes:
pdf2xps --norender --pass "my pass" -o outdir my.pdf
Notes:
pdf2xps -a 1-2 --subfolders dir1 dir2
PDF2XPS supports processing of multiple input documents in the same run. For example, it is possible to specify multiple PDF folders and PDF2XPS will automatically process all PDF documents matching a given file extension. For example, the following command-line will process all PDF documents in folders 'test1' and 'test2'
c:\> pdf2xps -o c:/output_folder c:/test1 c:/test2
Wildcard characters can also be used to process multiple input files.
For example, if a directory contains the following PDF documents:
To process all PDF documents in this folder, you could specify:
pdf2xps -o c:/output_folder c:/test1/*.pdf
To process all PDF documents starting with 'A', you could specify:
pdf2xps -o c:/output_folder c:/test1/A*.pdf
Or to process all PDF documents ending with '1', you could specify:
pdf2xps -o c:/output_folder c:/test1/*1.pdf
You can use either of the two standard wildcards --- the question mark (?) and the asterisk (*) --- to specify filename and path arguments on the command line.
The wildcards are expanded in the same manner as operating system commands. (Please refer to your operating system user's guide if you are unfamiliar with wildcards). Enclosing an argument in double quotation marks (" ") suppresses the wildcard expansion. Within quoted arguments, you can represent quotation marks literally by preceding the double-quotation-mark character with a backslash (\). If no matches are found for the wildcard argument, the argument is passed literally.\
Exit Codes
To provide additional feedback, PDF2XPS 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 description:
All codes other than '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