# PdfOptimizationReport

Optimization opportunities discovered without modifying the PDF.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfOptimizationReport.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Diagnostics/PdfOptimizationReport.cs#L19)

**Modifiers**

sealed

Optimization opportunities discovered without modifying the PDF.

## Inheritance

- object
- PdfOptimizationReport

## 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

- Property [PdfAnalysisReport.Optimization](/api/pdf/officeimo-pdf-pdfanalysisreport/#property-optimization)
- Method [PdfDocumentOptimization.Analyze](/api/pdf/officeimo-pdf-pdfdocumentoptimization/#method-analyze-officeimo-pdf-pdfloadoptions)
- Property [PdfOptimizationActionResult.ReportAfter](/api/pdf/officeimo-pdf-pdfoptimizationactionresult/#property-reportafter)
- Property [PdfOptimizationActionResult.ReportBefore](/api/pdf/officeimo-pdf-pdfoptimizationactionresult/#property-reportbefore)

Filter members 

Show inherited

## 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 PdfDiagnosticReport Diagnostics { get; }` [#](#property-diagnostics)

[PdfOptimizationReport.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Diagnostics/PdfOptimizationReport.cs#L19)

Underlying diagnostic report.

`public IReadOnlyList<PdfDuplicateStreamGroup> DuplicateStreams { get; }` [#](#property-duplicatestreams)

[PdfOptimizationReport.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Diagnostics/PdfOptimizationReport.cs#L22)

Duplicate stream candidate groups.

`public IReadOnlyList<PdfStreamDiagnostic> LargestStreams { get; }` [#](#property-largeststreams)

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

Largest stream objects by retained byte length.

`public IReadOnlyList<PdfDiagnosticFinding> Findings { get; }` [#](#property-findings)

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

Optimization findings and hints.

`public long EstimatedSavingsBytes { get; }` [#](#property-estimatedsavingsbytes)

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

Conservative estimate of bytes that might be saved by lossless object cleanup.

`public double EstimatedSavingsRatio { get; }` [#](#property-estimatedsavingsratio)

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

Estimated lossless savings divided by the total parsed stream bytes.

`public double EstimatedSavingsPercent { get; }` [#](#property-estimatedsavingspercent)

[PdfOptimizationReport.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Diagnostics/PdfOptimizationReport.cs#L42)

Estimated lossless savings percentage across parsed stream bytes.

`public int StreamCount { get; }` [#](#property-streamcount)

[PdfOptimizationReport.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Diagnostics/PdfOptimizationReport.cs#L45)

Total stream count.

`public long TotalStreamBytes { get; }` [#](#property-totalstreambytes)

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

Total retained bytes across parsed streams.

`public int DuplicateStreamGroupCount { get; }` [#](#property-duplicatestreamgroupcount)

[PdfOptimizationReport.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Diagnostics/PdfOptimizationReport.cs#L51)

Number of duplicate stream candidate groups.

`public int DuplicateStreamObjectCount { get; }` [#](#property-duplicatestreamobjectcount)

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

Number of stream objects participating in duplicate stream candidate groups.

`public bool HasDuplicateStreams { get; }` [#](#property-hasduplicatestreams)

[PdfOptimizationReport.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Diagnostics/PdfOptimizationReport.cs#L57)

True when duplicate stream candidates were found.

`public long LargestStreamBytes { get; }` [#](#property-largeststreambytes)

[PdfOptimizationReport.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Diagnostics/PdfOptimizationReport.cs#L60)

Largest retained stream length in bytes.

`public int FindingCount { get; }` [#](#property-findingcount)

[PdfOptimizationReport.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Diagnostics/PdfOptimizationReport.cs#L63)

Number of optimization findings.

`public bool HasOptimizationOpportunities { get; }` [#](#property-hasoptimizationopportunities)

[PdfOptimizationReport.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Diagnostics/PdfOptimizationReport.cs#L66)

True when the report found any concrete optimization opportunity.

`public int ImageStreamCount { get; }` [#](#property-imagestreamcount)

[PdfOptimizationReport.cs:71](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Diagnostics/PdfOptimizationReport.cs#L71)

Image stream count.

<!-- PowerForge markdown artifact sha256:54D18939B1C75CB3C56C5EAA271A6EF8C23B85E82CAA961495879FBC4F561F6F -->
