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.
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.
- Create an object of XpsDocument class
- Use the AddPage method to add a new page to the collection of the pages of the document
- Save the document using the Save method of XpsDocument class