Aspose.Page 26.10.0

Prefix Reserved
dotnet add package Aspose.Page --version 26.10.0
                    
NuGet\Install-Package Aspose.Page -Version 26.10.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Aspose.Page" Version="26.10.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Aspose.Page" Version="26.10.0" />
                    
Directory.Packages.props
<PackageReference Include="Aspose.Page" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Aspose.Page --version 26.10.0
                    
#r "nuget: Aspose.Page, 26.10.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Aspose.Page@26.10.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Aspose.Page&version=26.10.0
                    
Install as a Cake Addin
#tool nuget:?package=Aspose.Page&version=26.10.0
                    
Install as a Cake Tool

PostScript, EPS & XPS Processing via .NET API

Version NuGet

banner

Product Page | Docs | Demos | API Reference | Examples | Blog | Releases | Free Support | Temporary License

Aspose.Page for .NET is an on premise .NET API that allows you to add XPS manipulation features to your own applications. The API also supports converting XPS, EPS & PS documents to other formats.

Developers can perform various operations on XPS documents, such as, add text, images, pages, gradient, grid using the visual brush, transparency object and set opacity mask. It allows you to create, edit and convert the file pages as well as the ability to manipulate documents and elements, create vector graphics, group shapes, and specifying colors in different color spaces including sRGB, scRGB, and any space-based on ICC profile.

Which package do I need?

Where your code runs Package
Windows, .NET Framework Aspose.Page (this package)
Linux, macOS, Docker, Kubernetes, AWS Lambda, Azure Functions Aspose.Page.Drawing

This package depends on System.Drawing.Common, which is Windows-only from .NET 7 onward. For non-Windows platforms use Aspose.Page.Drawing � the same API on a fully managed graphics backend, with no native dependencies. Install one package or the other, not both.

XPS, EPS & PS Processing Features

  • Create & modify XPS documents via API.
  • Add pages to XPS documents.
  • Create vector graphic shapes (Path element) and text strings (Glyphs element).
  • Group various elements as well as modify the appearance of text strings and graphics.
  • Support for visual brush, image brush, solid color brush, and more.
  • Work with multiple documents within an XPS document.
  • Preserve print tickets and add default print tickets to new XPS documents.
  • Perform cross-package operations such as inserting a page from another document.
  • Conversion of XPS, PS & EPS documents to other popular formats.
  • Supports PostScript language levels 1-3 with an exception of font types: Type2 (CFF), Type14 (Chameleon), Types 9, 10, 11, 32 (CID-Keyed).

Supported Read Formats

XPS, EPS, PS

Save XPS Documents As

Fixed Layout: PDF
Image: BMP, TIFF, JPEG, PNG

Save PS & EPS Documents As

Metafiles: EMF, WMF
Animation: GIF
Image: BMP, TIFF, JPEG, PNG

Get Started

Execute Install-Package Aspose.Page from the Package Manager Console in Visual Studio, or dotnet add package Aspose.Page from the CLI. To upgrade an existing installation, run Update-Package Aspose.Page.

On Linux, macOS or in a container, install Aspose.Page.Drawing instead � see Which package do I need? above.

Create an XPS Document from Scratch via C# Code

Execute the below code snippet to see how Aspose.Page API performs in your own environment or check the GitHub Repository for other common usage scenarios.

using Aspose.Page.XPS;
using Color = System.Drawing.Color;
using FontStyle = System.Drawing.FontStyle;

// create XPS document
var xDocs = new XpsDocument();

// add glyphs to the document
var glyphs = xDocs.AddGlyphs("Arial", 12, FontStyle.Regular, 300f, 450f, "Hello World!");
glyphs.Fill = xDocs.CreateSolidColorBrush(Color.Black);

// save result
xDocs.Save(dir + "output.xps");

Convert a PostScript (PS) File to PDF Format

Aspose.Page for .NET allows you to work with document conversion, such as; PS to images, PS to PDF, XPS to images, XPS to PDF and so on. The following snippet demonstrates the conversion of PS to PDF using streams:

using Aspose.Page.EPS;
using Aspose.Page.EPS.Device;

// load the PostScript document
var document = new PsDocument(dir + "template.ps");

// carry on past recoverable problems and collect them instead of throwing
var options = new PdfSaveOptions(true);

document.SaveAsPdf(dir + "output.pdf", options);

// anything that was recovered from is reported here � including notices that a
// referenced font was not found and a substitute was used
foreach (var ex in options.Exceptions)
{
    Console.WriteLine(ex.Message);
}

Using Aspose.Page.Drawing instead? The code is identical, but the using aliases point at Aspose.Page.Drawing rather than System.Drawing. The full list is in the 24.4 release notes.

See the GitHub repository for other common usage scenarios.

Product Page | Docs | Demos | API Reference | Examples | Blog | Releases | Free Support | Temporary License


Try Aspose.Page Plugins


Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Aspose.Page:

Package Downloads
Aspose.Total

Aspose.Total for .NET is the most complete package of all .NET file format APIs offered by Aspose. It empowers developers to create, edit, render, print and convert between a wide range of popular document formats within any .NET, C#, ASP.NET and VB.NET applications.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Aspose.Page:

Repository Stars
aspose-words/Aspose.Words-for-.NET
Aspose.Words for .NET examples, plugins and showcases
Version Downloads Last Updated
26.10.0 414 10/20/2026
26.9.0 758 9/23/2026
26.8.0 1,544 8/21/2026
26.7.0 2,843 7/21/2026
26.6.0 1,326 6/19/2026
26.5.0 988 5/26/2026
26.4.0 6,187 4/21/2026
26.2.0 4,642 2/20/2026
26.1.0 2,795 1/20/2026
25.12.0 7,121 12/18/2025
25.11.0 9,765 11/14/2025
25.10.0 7,393 10/15/2025
25.9.4 22,777 9/22/2025
25.9.3 2,696 9/15/2025
25.9.2 3,178 9/9/2025
25.9.1 2,214 9/8/2025
25.9.0 2,446 9/22/2025
25.8.0 4,137 8/25/2025
25.7.0 8,551 7/17/2025
25.6.2 5,544 6/23/2025
Loading failed