Table of Contents

Property MaxPdfDecompressedBytes

Namespace
DocWright.Core
Assembly
DocWright.Core.dll

MaxPdfDecompressedBytes

Gets or sets the maximum number of bytes any single PDF stream may expand to once its filter chain has run, or null for unlimited.

On by default (DefaultMaxPdfDecompressedBytes). This is the PDF face of the zip bomb MaxUncompressedPartBytes guards in a package: /FlateDecode reaches roughly 1000:1 on a run of zeros, and a filter chain multiplies, so a kilobyte of input can ask for a gigabyte of output.

public long? MaxPdfDecompressedBytes { get; set; }

Property Value

long?

Exceptions

ArgumentOutOfRangeException

The value is not positive.