English Indonesia Tiếng Việt عربي Español Italiano Türk فارسی Français Português Русский ไทย

Working with Digital Signatures in XPS Documents using C#

'Wordize for .NET' provides C# developers with a complete set of tools for implementing secure document workflow with legally significant XPS files. The Wordize solution ensures generation of digital signatures, guaranteeing data integrity and protection of XPS documents against forgery.

With growing cybersecurity requirements, integration of reliable digital signature mechanisms is becoming a mandatory component of modern business applications in C#. Wordize API offers a ready-made solution, fully compatible with .NET and optimized for working with XPS files.

Key Capabilities for Working with XPS Documents

By integrating Wordize Signature for .NET into your application, you get:

  • Automated signing of XPS files using X.509 certificates and secure PFX/P12 storages
  • Removal of digital signatures
  • Enhanced signature metadata with the ability to include timestamps and additional information

Technical Features and Benefits

  • Support for various scenarios: from simple signing of XPS documents to integration with file format conversion processes
  • Flexible signing options for XPS: the SignOptions class allows customizing various signature parameters in XPS documents
  • Support for input-output streams: ability to work with both XPS files and data streams (I/O streams)

Evaluate the efficiency of the .NET solution right now! Try the online demo for signing XPS documents — upload an XPS file, apply an X.509 certificate, and get a document with a digital signature. The sample source code in C# is available for study, so you can easily adapt the solution for your projects in the .NET environment.

C#
Run code
Upload the file you want to sign
Upload X.509 certificate file (PFX/P12)
Select the target format from the list
using Wordize.DigitalSignatures;

CertificateHolder certificateHolder = CertificateHolder.Create("Certificate.pfx", "password");
Signer.Sign("Input.xps", "Output.xps", certificateHolder);
using Wordize.DigitalSignatures; CertificateHolder certificateHolder = CertificateHolder.Create("Certificate.pfx", "password"); Signer.Sign("Input.xps", "Output.xps", certificateHolder);
Run code

How to create a Digital Signature for XPS in C#

System Requirements

Our product is fully cross-platform and supports all major .NET implementations:

  • .NET ≥ 5.0
  • .NET Core ≥ 2.0
  • .NET Standard ≥ 2.0
  • .NET Framework ≥ 3.5
  • MonoMac
  • MonoAndroid
  • Xamarin

As far as .NET code doesn't depend on the underlying hardware or operating system, but only on a Virtual Machine, you are free to develop any kind of software for Windows, macOS, Android, iOS and Linux. Just make sure you have installed the corresponding version of .NET Framework, .NET Core, Windows Azure, Mono or Xamarin.

We recommend using Microsoft Visual Studio, Xamarin, and MonoDevelop integrated development environments to create C#, F#, VB.NET applications.

5%