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.
At a Glance
An overview of API.
- PS, EPS to PDF, EMF, and WMF
- XPS Format to XPS and PDF
- PostScript files to Images
- XPS files to Images
- Solid Color Brush
- Image Brush
- Visual Brush
- ICC Profile
Library can be integrated with any kind of C++ application developed on Linux or Windows platform with system requirements.
Supported File Formats
Aspose.Page for C++ supported file formats are listed below.
- Fixed Layout: XPS
- PostScript: EPS, PS
- Fixed Layout: PDF
- Images: PNG, JPEG, TIFF, BMP
- EMF, GIF, WMF
Advanced XPS & PostScript API Features
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 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
Insert Pages in XPS Files
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.
Add document Pages to XPS file - C++
// 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");
XPS and PostScript Files Conversion
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.