Aspose.Page for C++ is a reliable library for XPS and PostScript file rendering and manipulation. It allows to create, modify and convert existing as well as new XPS files without requiring any other software. API allows operations such as manipulation of document pages & elements such as canvases, paths, and glyphs, create and manipulate vector graphics shapes and specifying colors in different color spaces. Moreover, developers can convert PS and EPS documents to PDF as well as in different raster image formats.
An overview of API.
Library can be integrated with any kind of C++ Application.
Aspose.Page for C++ supported file formats are listed below.
Generate and edit XPS files
Add or delete XPS document pages
Manipulate canvases, paths, and glyphs elements
Handle vector graphics shapes and text strings
Use different brushes like a solid color, image, or visual brush
Specify different color spaces including space-based on ICC profile
Use multiple document elements within the same XPS Package for cross-package operations
Handle multiple documents within an XPS document
Manipulate, save and render XPS outline items
Add and manipulate print tickets
Save XPS files to PDF and raster images
Save EPS documents to raster images and PDF
Aspose.Page for C++ supports loading XPS files for manipulation and we can easily add new pages within that file. C++ developers can use the library to automate scenarios that may help them on their way.
// Create new XPS file auto doc = System::MakeObject<XpsDocument>(dataDir() + u"Sample1.xps"); // Add empty page at end 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");
Library offers the conversion of XPS, PS & EPS documents to PDF & raster image formats including BMP, JPEG, PNG, TIFF. Developer can specify quality level, resolution, page numbers while saving documents within images.