Class PdfSignature
Represents a digital signature in a PDF document.
public sealed class PdfSignature : PdfObject, IDisposable
- Inheritance
-
PdfSignature
- Implements
- Inherited Members
Methods
GetByteRange()
Gets the byte range used to compute the signature hash. This typically contains 4 integers: start offset, length before signature, offset after signature, and length after.
public IReadOnlyList<int> GetByteRange()
Returns
- IReadOnlyList<int>
A list of signed byte range values, or empty if none are present.
GetContents()
Gets the raw PKCS#7 signature contents as a DER-encoded binary blob.
public byte[] GetContents()
Returns
GetDocMDPPermission()
Gets the DocMDP permission level defined by this signature.
public PdfDocMDPPermission GetDocMDPPermission()
Returns
- PdfDocMDPPermission
A PdfDocMDPPermission value indicating the allowed operations after signing.
GetReason()
Gets the human-readable reason string associated with the signature (if available).
public string GetReason()
Returns
- string
The reason string provided by the signer, or an empty string if none.
GetSigningTime()
Gets the timestamp string associated with the signature (typically from the /M field).
public string GetSigningTime()
Returns
- string
A string containing the signing time, or an empty string if unavailable.
GetSubFilter()
Gets the SubFilter string that specifies the encoding format of the signature (e.g. PKCS7, CAdES).
public string GetSubFilter()
Returns
- string
The SubFilter string, or an empty string if not present.