Skip to content
master
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Jun 12, 2019
Jun 26, 2019

Nuget Nuget GitHub

XPS & Postscript File Manipulation API

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 to convert XPS, EPS & PS documents to other formats.

Directory Description
Demos Source code for live demos hosted at https://products.aspose.app/page/family.
Examples A collection of .NET examples that help you learn the product features.

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).

Read & Write XPS Format

Fixed Layout: XPS

Save XPS, PS & EPS Documents As

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

Save PS & EPS Documents As

Metafiles: EMF, WMF
Animation: GIF

Platform Independence

Aspose.Page for .NET can be integrated with any kind of ASP.NET Web Application or a Windows Application.

Get Started with Aspose.Page for .NET

Are you ready to give Aspose.Page for .NET a try? Simply execute Install-Package Aspose.Page from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.Page for .NET and want to upgrade the version, please execute Update-Package Aspose.Page to get the latest version.

Create an XPS Document from Scratch

// create XPS document
XpsDocument xDocs = new XpsDocument();
// add glyph 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

// initialize PostScript input stream
var psStream = new System.IO.FileStream(dir + "template.ps", System.IO.FileMode.Open, System.IO.FileAccess.Read);
// initialize PDF output stream
var pdfStream = new System.IO.FileStream(dir + "output.pdf", System.IO.FileMode.Create, System.IO.FileAccess.Write);
// read PS file
var document = new PsDocument(psStream);
// create a device for output steram
var device = new PdfDevice(pdfStream);
try
{
    document.Save(device, options);
}
finally
{
    psStream.Close();
    pdfStream.Close();
}

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

About

Aspose.Page for .NET Examples

Resources

License

Releases

No releases published

Packages

No packages published