Some test text!

XPS to PDF Command Line Conversion

In this document
chevron_rightWhat is XPS?
chevron_rightWhy XPSConvert?
chevron_rightKey Functions
chevron_rightCommon Use Case Scenarios
chevron_rightOperating Systems Supported
chevron_rightSystem Requirements
chevron_rightExamples
chevron_rightPDFNet SDK

PDFTron's XPSConvert is an easy-to-use, multi-platform command-line program that provides users with an efficient way to convert XPS or OpenXPS documents into PDF as well as image formats (such as PNG, TIFF, BMP, and JPEG).

XPSConvert enables high-quality conversion from XPS to PDF that maintains the original document quality and preserves hyperlinks, colors and fonts. The resulting self-contained and compact PDF and image files can be distributed, viewed, edited, archived, printed, and published. The conversion also offers a wide range of options to control the output file size and image quality.

Like other PDFTron products, XPSConvert does not rely on Microsoft .NET platform or any other third party components. The technology is suitable for use in high-throughput server environments and is also available as a component for integration with third party applications.

Download XPSConvert

linkWhat is XPS?

"XPS" stands for "XML Paper Specification" and is a new document format as well as the native print spooler format in Microsoft's Windows Vista™. The XPS document format consists of XML markup that defines the layout of a document and the visual appearance of each page along with rendering rules for distributing, archiving, rendering, processing and printing the documents. Just like PDF, the XPS document format enables users to view, print, and archive any type of documents without the original program that created them and without loss of fidelity.

To find out more about XPS, please visit Microsoft®'s website

linkWhy XPSConvert?

With the emergence of the new document format XPS, interoperability between XPS and other document formats, predominantly a document format as widely accepted as PDF, will be crucial to many business workflows and applications.

PDFTron is leading the way in developing the next generation of our core technology that will enable users to take advantage of both PDF and XPS document formats in their solutions.

linkKey Functions

  • Convert XPS or OpenXPS to PDF

  • Convert XPS or OpenXPS to PNG, PNG8, JPEG, TIFF, TIFF8, TIFF (G3/G4 CCITT Fax) BMP, and RAW.

  • Full support for XPS and OpenXPS specifications.

  • Batch conversion.

  • Conversion support for unzipped XPS folders.

  • Preserves embedded fonts, ICC profiles, and hyperlinks.

  • Multi-page Tiff export.

  • Dithering control for 1 bit per pixel and palletized image formats.

  • Wild card and subfolder processing.

  • Adjustable output resolutions for raster image output.

linkCommon Use Case Scenarios

  • Developers may want to use XPSConvert to quickly add XPS support to any applications or workflows that support PDF.

  • Server-based, on-demand conversion of XPS documents to PDF files or raster images.

  • Batch processing of PDF collections with same rasterization options. XPSConvert is particularly useful in assembling product catalogues and brochures.

  • Thumbnail generation for XPS documents.

linkOperating Systems Supported

  • Windows, Linux and Mac.

linkSystem Requirements

  • At least 10 MB of free disk space.

  • Memory requirement is dependent on source document being converted.

linkExamples

#!/bin/sh
echo "Example 1) Convert XPS to PDF using default settings:"
./xpsconvert -o test_out/ex1 test/"PDFTron XPSConvert User Manual.xps"
echo
echo "Example 2) Convert XPS cover page to PNG 100x100 pixel thumbnail:"
./xpsconvert -o test_out/ex2 -f png --hres 100 --vres 100 -a 1 test/"PDFTron XPSConvert User Manual.xps"
echo
echo "Example 3) Convert XPS to multi-page TIFF using monochrome rendering with dithering; also rotate image 90 degrees couterclockwise:"
./xpsconvert -o test_out/ex3 --dpi 96 -f tif --multipage --mono --dither --rotate 90 test/"PDFTron XPSConvert User Manual.xps"

linkPDFNet SDK

For developers who are looking for a software development component to integrate into their application, PDFTron also offers PDFNet SDK, an easy-to-use, yet powerful software component for embedding into client and server based applications. PDFNet SDK is available as a shared library and can be easily accessed from any programming language (including C#, VB.NET, C/C++, Java, VB6, Perl, Python, Ruby, Delphi, etc). XPSConvert is also available as an add-on module for PDFNet SDK.