Skip to main content

Module diagnostics

Module diagnostics 

Source
Expand description

Public diagnostics model.

A stable, engine-agnostic view of the warnings, fallbacks and degradations that occurred while processing a document — font substitutions, dropped images, exceeded resource limits. Diagnostics let an enterprise caller tell a clean render apart from a silently-degraded one.

Collected diagnostics are read via PdfDocument::diagnostics and PdfDocument::take_diagnostics. The model never exposes internal engine types, so it stays stable across releases.

Structs§

Diagnostic
A single diagnostic: something the engine recovered from, substituted, or dropped while processing a document.
LeniencyReport
An aggregated summary of decode-leniency diagnostics for a document.

Enums§

DiagnosticCategory
What area a Diagnostic concerns.
Severity
How serious a Diagnostic is.