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

XPS Document Digital Signing in C#

Wordize for .NET is a professional solution for digital signing of XPS documents using C#. The Signer class provides C# developers with the ability to sign XPS files using electronic signatures and X.509 cryptographic certificates. Programmatic addition of digital signatures to XPS ensures document authenticity, protection from unauthorized modifications, and compliance with electronic document management requirements.

Key Features:
  • Digital signing of XPS documents - the Signer.Sign() method adds cryptographic signatures using CertificateHolder (container for working with PFX certificates) and X.509 certificates
  • Electronic signature removal - the Signer.RemoveAllSignatures() method removes all digital signatures from XPS documents
  • Electronic signature validation for verifying XPS document integrity
  • PFX certificate support through CertificateHolder.Create() with password protection for PKI infrastructure (cryptographic key and certificate management system)
  • The SignOptions class manages signature comments, signing time, certificate access password, cryptographic provider identifier, and XML signature level
  • Fluent API support for executing XPS signing operations through SignerContext and method chaining, enhancing C# code readability
Use Cases:
  • Simple electronic signature - basic XPS document signing for internal corporate processes
  • Advanced electronic signature - protection of XPS financial reports and banking documents from falsification
  • Qualified electronic signature - ensuring legal validity of contracts and official XPS documents in electronic document management systems
  • Bulk XPS document signing - automation of file signing in electronic document workflow systems
  • Timestamps - adding time stamps to XPS for recording signing time and legal significance
  • Regulatory compliance - ensuring XPS document authentication and compliance with security standards

Test the capabilities of programmatic XPS signing with digital signatures in the interactive online demo presented on this page. Upload your XPS document and PFX certificate, execute the digital signing operation, and download the signed XPS file for verification. The provided C# code snippet is ready for use in your .NET project.

C#
Run code
Upload document to sign
Upload certificate file (PFX)
Select output 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 Digitally Sign XPS Documents with C#

  1. Connect Wordize SDK to your .NET project
  2. Call the Signer.Sign() method, specifying the source XPS document name, output document name, and CertificateHolder with the cryptographic certificate
  3. Get your XPS document signed with digital signature
5%