eSign XPS
Add electronic signature to XPS files. API Solution for .NET.
Aspose.Page offers XPS files signing functionality using any language supported by the .NET platform: C#, VB, J#.
The API you see here can be used to create your own cross-platform application or be integrated into your .NET project.
In order to open XPS file use:
Aspose.Page for .NET API which is a feature-rich, powerful and easy to use duse digital signature API for C# platform.
Open the NuGet package manager, and search for Aspose.Page and install. You may also use the following command from the Package Manager Console.
Package Manager Console Command
PM> Install-Package Aspose.Page
Steps for e-Signing XPS via C#
A basic document digital signature with Aspose.Page for .NET APIs can be done with just a few lines of code. One can easily electronically sign XPS documents. XPS eSigns can be text, image or drawing-based signatures.
- Load all the XPS files with the full path.
- Set the style of text like font, font size, color etc.
- Set the Signature text.
- Save the XPS file. You will get the document with signature inserted.
System Requirements
Our APIs are supported on all major platforms and Operating Systems. Before executing the code below, please make sure that you have the following prerequisites on your system.
- Microsoft Windows or a compatible OS with .NET Framework Platform, Windows and ASP.NET Applications.
- Development environment like Microsoft Visual Studio.
- Aspose.Page for .NET DLL referenced in your project - Install from NuGet using the Download button above.
e-Sign XPS Files - C#
XpsDocument document = new XpsDocument();
XpsSolidColorBrush textFill = document.CreateSolidColorBrush(Color.Black);
textFill = document.CreateSolidColorBrush(Color.Black);
//Add glyph to the document
XpsGlyphs glyphs = document.AddGlyphs("Arial", 24, FontStyle.Regular, 450f, 50f, "eSignature Text");
glyphs.Fill = textFill;
document.Save("outPath.xps");
XPS Signature Web Application
FAQ
1. How can I sign XPS file?
Aspose.Page solution has functionality that allows you to add the signature to XPS files online or programmatically. If you need to sign XPS online you can use XPS Signature cross-platform application.
2. What types of signature are available for applying?
You can add pictures, or text or draw a signature to your document.
3. Can I find more detailed informationon how to sign XPS files?
Go to the Documentation chapter to find the information like Developer Guide, Release Notes, and many more about Page Description Languages. Visit our GitHub project to see the code examples for using the solution.
4. Is the functionality free?
The cross-platform signature application is free, when for the API solution you can get a free Trial and then buy the product if needed.
XPS What is XPS File Format
XPS format is similar to PDF format. Both are page description language (PDL) formats. EPS is based on HTML and not on PostScript language. The .eps file is capable to contain a markup of the document's structure along with the information on how the document would look like. There are also added instructions on how to print and render the document. The feature of the format is that it fixes the document's description which means that it will look the same no matter who and from what operational system opens it.