API Reference

Class

PdfDocumentSecurity

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Modifiers sealed

Password encryption and digital-signature operations for one PDF document.

Inheritance

  • Object
  • PdfDocumentSecurity

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Methods

public PdfDocument CompleteExternalSignature(Byte[] signatureContents) #
Returns: PdfDocument

Completes the most recently prepared external signature with encoded CMS bytes.

Parameters

signatureContents System.Byte[] requiredposition: 0
public PdfSecurityMutationResult Decrypt(String ownerPassword) #
Returns: PdfSecurityMutationResult

Removes Standard password security using the current owner password.

Parameters

ownerPassword System.String requiredposition: 0
public PdfSecurityMutationResult Encrypt(PdfStandardEncryptionOptions encryption) #
Returns: PdfSecurityMutationResult

Encrypts an unencrypted PDF and returns the rewritten document with preservation proof.

Parameters

encryption OfficeIMO.Pdf.PdfStandardEncryptionOptions requiredposition: 0
public PdfExternalSignaturePreparation PrepareExternalSignature(PdfExternalSignatureOptions options = null) #
Returns: PdfExternalSignaturePreparation

Prepares a placeholder and byte ranges for an externally produced signature.

Parameters

options OfficeIMO.Pdf.PdfExternalSignatureOptions = null optionalposition: 0
public PdfSecurityMutationResult Reencrypt(String currentOwnerPassword, PdfStandardEncryptionOptions newEncryption) #
Returns: PdfSecurityMutationResult

Replaces Standard password security using the current owner password.

Parameters

currentOwnerPassword System.String requiredposition: 0
newEncryption OfficeIMO.Pdf.PdfStandardEncryptionOptions requiredposition: 1
public PdfExternalSignatureCompletion SignExternal(IPdfExternalSigner signer, PdfExternalSignatureOptions options = null) #
Returns: PdfExternalSignatureCompletion

Prepares, delegates signing, and completes an external signature in one operation.

Parameters

signer OfficeIMO.Pdf.IPdfExternalSigner requiredposition: 0
options OfficeIMO.Pdf.PdfExternalSignatureOptions = null optionalposition: 1
public PdfOperationResult<PdfSecurityMutationResult> TryDecrypt(String ownerPassword) #
Returns: PdfOperationResult<PdfSecurityMutationResult>

Attempts to remove Standard password security using the current owner password.

Parameters

ownerPassword System.String requiredposition: 0
public PdfOperationResult<PdfSecurityMutationResult> TryEncrypt(PdfStandardEncryptionOptions encryption) #
Returns: PdfOperationResult<PdfSecurityMutationResult>

Attempts to encrypt an unencrypted PDF through the shared mutation planner.

Parameters

encryption OfficeIMO.Pdf.PdfStandardEncryptionOptions requiredposition: 0
public PdfOperationResult<PdfExternalSignaturePreparation> TryPrepareExternalSignature(PdfExternalSignatureOptions signatureOptions = null, PdfReadOptions options = null) #
Returns: PdfOperationResult<PdfExternalSignaturePreparation>

Attempts to prepare an external signature through document preflight.

Parameters

signatureOptions OfficeIMO.Pdf.PdfExternalSignatureOptions = null optionalposition: 0
options OfficeIMO.Pdf.PdfReadOptions = null optionalposition: 1
public PdfOperationResult<PdfSecurityMutationResult> TryReencrypt(String currentOwnerPassword, PdfStandardEncryptionOptions newEncryption) #
Returns: PdfOperationResult<PdfSecurityMutationResult>

Attempts to replace Standard password security using the current owner password.

Parameters

currentOwnerPassword System.String requiredposition: 0
newEncryption OfficeIMO.Pdf.PdfStandardEncryptionOptions requiredposition: 1
ValidateSignatures 2 overloads
public PdfSignatureValidationReport ValidateSignatures(PdfReadOptions options = null) #
Returns: PdfSignatureValidationReport

Validates signature structure, byte ranges, and preservation markers.

Parameters

options OfficeIMO.Pdf.PdfReadOptions = null optionalposition: 0
public PdfSignatureValidationReport ValidateSignatures(IPdfSignatureCryptographyProvider cryptographyProvider, PdfReadOptions options = null) #
Returns: PdfSignatureValidationReport

Validates signatures with caller-provided CMS, trust, timestamp, and revocation policy.

Parameters

cryptographyProvider OfficeIMO.Pdf.IPdfSignatureCryptographyProvider requiredposition: 0
options OfficeIMO.Pdf.PdfReadOptions = null optionalposition: 1