# PdfRewritePreservationReport

Result of comparing original and rewritten PDFs for user-visible preservation.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfRewritePreservationReport.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfRewritePreservationReport.cs#L54)

**Modifiers**

sealed

Result of comparing original and rewritten PDFs for user-visible preservation.

## Inheritance

- object
- PdfRewritePreservationReport

## Usage

Explore 12 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 12

- Property [PdfAcroFormEditResult.PreservationReport](/api/pdf/officeimo-pdf-pdfacroformeditresult/#property-preservationreport)
- Property [PdfAnnotationEditResult.RewritePreservationReport](/api/pdf/officeimo-pdf-pdfannotationeditresult/#property-rewritepreservationreport)
- Property [PdfAttachmentEditResult.PreservationReport](/api/pdf/officeimo-pdf-pdfattachmenteditresult/#property-preservationreport)
- Property [PdfBatesDocumentResult.Preservation](/api/pdf/officeimo-pdf-pdfbatesdocumentresult/#property-preservation)
- Property [PdfDestructiveCropResult.PreservationReport](/api/pdf/officeimo-pdf-pdfdestructivecropresult/#property-preservationreport)
- Method [PdfDocumentProof.AssertRewritePreserved](/api/pdf/officeimo-pdf-pdfdocumentproof/#method-assertrewritepreserved-string-officeimo-pdf-pdfrewritepreservationoptions)
- Method [PdfDocumentProof.AssessRewritePreservation](/api/pdf/officeimo-pdf-pdfdocumentproof/#method-assessrewritepreservation-string-officeimo-pdf-pdfrewritepreservationoptions)
- Property [PdfJavaScriptEditResult.PreservationReport](/api/pdf/officeimo-pdf-pdfjavascripteditresult/#property-preservationreport)
- Property [PdfOptimizationActionResult.PreservationReport](/api/pdf/officeimo-pdf-pdfoptimizationactionresult/#property-preservationreport)
- Property [PdfRepairArtifactResult.Preservation](/api/pdf/officeimo-pdf-pdfrepairartifactresult/#property-preservation)
- Property [PdfRewritePreservationMatrixEntry.PreservationReport](/api/pdf/officeimo-pdf-pdfrewritepreservationmatrixentry/#property-preservationreport)
- Property [PdfSecurityMutationResult.PreservationReport](/api/pdf/officeimo-pdf-pdfsecuritymutationresult/#property-preservationreport)

Filter members 

Show inherited

## Methods

`public void ThrowIfFailed()` [#](#method-throwiffailed)

[PdfRewritePreservationReport.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfRewritePreservationReport.cs#L54)

Throws an InvalidOperationException when preservation checks found mismatches.

## 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 bool CanReadDetails { get; }` [#](#property-canreaddetails)

[PdfRewritePreservationReport.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfRewritePreservationReport.cs#L20)

Whether both complete inspection snapshots may be read with the supplied authorizations.

`public PdfDocumentInfo Original { get; }` [#](#property-original)

[PdfRewritePreservationReport.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfRewritePreservationReport.cs#L26)

Inspection snapshot for the original PDF, subject to its content-extraction permission.

Exceptions

- `PdfPermissionDeniedException` – The original authorization does not permit content extraction.

`public PdfDocumentInfo Rewritten { get; }` [#](#property-rewritten)

[PdfRewritePreservationReport.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfRewritePreservationReport.cs#L32)

Inspection snapshot for the rewritten PDF, subject to its content-extraction permission.

Exceptions

- `PdfPermissionDeniedException` – The rewritten authorization does not permit content extraction.

`public IReadOnlyList<PdfRewritePreservationIssue> Issues { get; }` [#](#property-issues)

[PdfRewritePreservationReport.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfRewritePreservationReport.cs#L36)

Preservation mismatches found in the rewritten PDF.

`public bool IsPreserved { get; }` [#](#property-ispreserved)

[PdfRewritePreservationReport.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfRewritePreservationReport.cs#L39)

True when no preservation mismatches were found.

`public string Summary { get; }` [#](#property-summary)

[PdfRewritePreservationReport.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfRewritePreservationReport.cs#L44)

Human-readable summary suitable for logs, tests, and wrappers.

<!-- PowerForge markdown artifact sha256:39DC4717CB84C1DF3C14CBA9A4A8B89E71518E759729A818245AAED957B79F20 -->
