Class OptimizationResult

Namespace
SoftZenPdf.Optimizer
Assembly
SoftZenPdf.Optimizer.dll

What Optimize(string, string, string?) did, and how much it saved.

public sealed class OptimizationResult
Inheritance
OptimizationResult
Inherited Members

Properties

Handlers

What each handler changed, in the order the handlers ran.

Images

Every image an image handler looked at: whether it was optimized, kept because the result was not smaller, skipped or failed, with its size before and after.

KeptOriginal

Whether the optimized file was not smaller than the input, so the input was written unchanged instead. See KeepOriginalIfNotSmaller.

OptimizedSize

The size of the file that was written, in bytes.

OriginalSize

The size of the input file, in bytes.

Reduction

The saving as a fraction of the original size, from 0 (nothing saved) towards 1.

SavedBytes

How many bytes smaller the output is than the input; 0 when KeptOriginal.

Warnings

Things worth knowing about the output, for example that digital signatures no longer validate.