# PdfSecurityMutationResult

Output and proof produced by an existing-document encryption mutation.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfSecurityMutationResult.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfSecurityMutationResult.cs#L48)

**Modifiers**

sealed

Output and proof produced by an existing-document encryption mutation.

## Inheritance

- object
- PdfSecurityMutationResult

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Encrypt, Decrypt, and Sign PDFs](/docs/pdf/encrypt-sign/) Guide
  
  Encrypt PDFs with passwords and permissions, decrypt protected files, sign with a certificate and validate signatures with OfficeIMO.Pdf.
- [PDF Security and Digital Signatures](/docs/pdf/security/) Guide
  
  Encrypt PDFs, inspect signature structure, verify CMS signatures, preserve signed revisions, and enrich long-term validation evidence.
- [Protect a PDF with AES-256 passwords](/pdf/protect/) Guide
  
  Encrypt a PDF with AES-256 Standard security, set document-open and owner passwords, and review preservation evidence for the protected copy.
- [Unlock a password-protected PDF copy](/pdf/unlock/) Guide
  
  Remove PDF Standard password security with a valid owner password, verify the result is unencrypted, and download a separate unlocked document.

## Usage

Explore 4 API references to this type

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

### Returned or exposed by 4

- Method [PdfDocumentSecurity.Decrypt](/api/pdf/officeimo-pdf-pdfdocumentsecurity/#method-decrypt-string)
- Method [PdfDocumentSecurity.Encrypt](/api/pdf/officeimo-pdf-pdfdocumentsecurity/#method-encrypt-officeimo-pdf-pdfstandardencryptionoptions)
- Method [PdfDocumentSecurity.EncryptForRecipients](/api/pdf/officeimo-pdf-pdfdocumentsecurity/#method-encryptforrecipients-officeimo-pdf-pdfpublickeyencryptionoptions)
- Method [PdfDocumentSecurity.Reencrypt](/api/pdf/officeimo-pdf-pdfdocumentsecurity/#method-reencrypt-string-officeimo-pdf-pdfstandardencryptionoptions)

Filter members 

Show inherited

## Methods

`public PdfDocument ToDocument()` [#](#method-todocument)

[PdfSecurityMutationResult.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfSecurityMutationResult.cs#L48)

Opens the rewritten bytes through the normal fluent document API.

Returns

`PdfDocument`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public PdfSecurityMutationKind Kind { get; }` [#](#property-kind)

[PdfSecurityMutationResult.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfSecurityMutationResult.cs#L25)

Security mutation that produced this result.

`public byte[] Pdf { get; }` [#](#property-pdf)

[PdfSecurityMutationResult.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfSecurityMutationResult.cs#L28)

Rewritten PDF bytes.

`public PdfMutationPlan MutationPlan { get; }` [#](#property-mutationplan)

[PdfSecurityMutationResult.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfSecurityMutationResult.cs#L31)

Full-rewrite decision and required proof.

`public PdfRewritePreservationReport PreservationReport { get; }` [#](#property-preservationreport)

[PdfSecurityMutationResult.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfSecurityMutationResult.cs#L34)

Comparison proving preservation of supported non-security document structures.

`public PdfDocumentSecurityInfo SourceSecurity { get; }` [#](#property-sourcesecurity)

[PdfSecurityMutationResult.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfSecurityMutationResult.cs#L37)

Security state read from the source document.

`public PdfDocumentSecurityInfo OutputSecurity { get; }` [#](#property-outputsecurity)

[PdfSecurityMutationResult.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfSecurityMutationResult.cs#L40)

Security state read back from the rewritten document.

`public bool IsEncrypted { get; }` [#](#property-isencrypted)

[PdfSecurityMutationResult.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfSecurityMutationResult.cs#L43)

True when the output is protected by Standard password security.

<!-- PowerForge markdown artifact sha256:4B8814245D0A2C3831E9700D16B14FEC0CD8B37DE2D62E3693DA0B1A673DF3DD -->
