Aspose.Page  for C++

C++ Library for PostScript and XPS Formats

Load, manipulate and convert PostScript PS, EPS and XPS files to PDF and raster images within C++ applications.

  Download Free Trial
  
 

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.

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.

  

Support and Learning Resources

  
  

Aspose.Page offers individual APIs for popular development environments as listed below: