Add Pages to XPS Document

[ ]

An XPS document can comprise of one or more pages. Aspose.Page for C++ allows adding pages to an XPS document without the requirement of any other software.

Add Pages

The XpsDocument class of API exposes the InsertPage method that is used to add pages to an XPS document. In order to add pages to XPS document, use the following steps.

  1. Create an object of XpsDocument class
  2. Use the AddPage method to add a new page to the collection of the pages of the document
  3. Save the document using the Save method of XpsDocument class