For complete examples and data files, please go to https://github.com/aspose-page/Aspose.Page-for-C // Create new XPS Document auto doc = System::MakeObject(dataDir() + u"Sample1.xps"); // Add empty page at end of pages list doc->AddPage(); // Insert an empty page at beginning of pages list doc->InsertPage(1, true); // Save resultant XPS document doc->Save(outDir() + u"AddPages_out.xps");