Table of Contents

Property StrictMode

Namespace
DocWright.Formats.Pdf
Assembly
DocWright.Formats.Pdf.dll

StrictMode

Gets or sets a value indicating whether structural damage aborts the read rather than being recovered from. Default: false.

public bool StrictMode { get; set; }

Property Value

bool

Remarks

With strict mode off — the default, and what a viewer does — a missing cross-reference table is rebuilt by scanning, a wrong /Length is corrected, and a broken page tree falls back to loose page objects, each with a DXP8xxx diagnostic. With it on, the first such recovery raises InvalidDocumentException instead.