Convert XPS to PDF

Contents
[ ]

Aspose.Page for C++ lets you convert XPS to PDF. The PdfSaveOptions class is used to convert XPS documents to PDF. It allows you to specify additional saving options using the TextCompression, ImageCompression, JpegQualityLevel and other associated classes. In order to convert XPS to PDF, use the following steps.

  1. Load the input XPS document as a stream
  2. Create an XpsDocument object from this stream
  3. Specify save options using the PdfSaveOptions class
  4. Instantiate a new object of PdfDevice with XPS stream
  5. Save the document as PDF using the save options

The following C++ code shows how to convert XPS to PDF.