---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/PdfSigner
---

# PdfSigner

## Overview

`PdfSigner` is a class in Aspose.PDF FOSS for .NET.

Signs PDF documents with X.509 certificates using PKCS#7/CMS detached signatures.

This class provides 3 methods for working with PdfSigner objects in .NET programs.
Available methods include: `Sign`, `SignWithAppearance`, `Verify`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.

## Methods

| Signature | Description |
|-----------|-------------|
| `Sign(pdfData: byte[], certificate: PdfCertificate, options: SignatureOptions?)` | Sign a PDF document and return the signed bytes. |
| `Verify(pdfData: byte[], fieldName: string?)` | Verify a signature in a PDF document. |
| `SignWithAppearance(pdfData: byte[], certificate: PdfCertificate, options: SignatureOptions?, appearance: SignatureAppearance)` | Sign a PDF document with an X.509 certificate and a visible signature appearance. |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)