.NET APIs to manipulate XPS files on the fly
Create, Read & Edit XPS files from within .NET applications.Download Free Trial
Aspose.XPS for .NET
Aspose.XPS for .NET provides extensive manipulation capabilities for XPS files without requiring any additional software.
Aspose.XPS for .NET allows to create and edit the XPS files as well as provides the ability to manipulate document pages & elements, create vector graphics, group shapes and specifying colors in different color spaces including sRGB, scRGB, and any space based on ICC profile.
At A Glance
An overview of Aspose.XPS for .NET API.
- Solid Color Brush
- Image Brush
- Visual Brush
- Linear Gradient Brush
- Radial Gradient Brush
- ICC Profile
Aspose.XPS for .NET supports any .NET framework starting from 2.0.
Supported File Formats
Aspose.XPS for .NET supports XPS at the moment.
- Fixed Layout: XPS
Advanced .NET XPS Manipulation API Features
Dynamically create or load XPS files
Create vector graphics using a set of primitives
Create text strings & manipulate appearance
Group elements to treat as a whole
Manipulate appearance of graphics & text
Specify colors in different color spaces
Read or Create XPS Files
Aspose.XPS for .NET not only supports loading XPS files for manipulation but it also provides the capability to create XPS files from scratch. .NET developers can use the API to automate scenarios that may help them on their way.
Create XPS document from scratch - C#
// create XPS document var xps = new Aspose.Xps.XpsDocument(); // add glyph to the document var glyphs = xps.AddGlyphs("Arial", 12, FontStyle.Regular, 300f, 450f, "Hello World!"); glyphs.Fill = xps.CreateSolidColorBrush(Color.Black); // save result xps.Save(dir + "output.xps");
Easily Manipulate XPS Pages
Aspose.XPS for .NET provides extensive support for page manipulation. You can add a page to the end of the page list or insert it at any specified position. .NET XPS API also allows to remove pages, select a page by number as “active” or create a page without binding it to the document.