Table of Contents

Property StrictMode

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

StrictMode

Gets or sets whether anything the assembly could not carry is an error rather than a diagnostic.

public bool StrictMode { get; set; }

Property Value

bool

Remarks

Default behaviour degrades and reports: a dropped structure tree, a dropped form, a link whose target page is gone and the loss of a source's encryption all produce a diagnostic and a counted entry on PdfAssemblyResult. With strict mode set, each of them raises UnsupportedFeatureException instead, so a caller who cannot accept a lossy assembly does not have to inspect the result to find out it was one.