GetAnnotationAppearanceAuditJSON

Annotations, diagnostics, JSON

Description

Audits annotation normal appearances across all pages and returns issue details plus aggregate counters as JSON

Syntax

Function TPDFlib.GetAnnotationAppearanceAuditJSON: WideString;

Return values

Returns a JSON object containing scanned, issueAnnotations, issue counters and an annotations array

Issue names

missingAppearanceThe annotation type requires a normal appearance but no usable /AP /N entry exists
staleAppearanceA library-generated appearance fingerprint no longer matches the annotation source properties
invalidBBoxThe active appearance has no valid positive /BBox
stateMismatchThe annotation /AS name does not select a stream in a state appearance dictionary
invisibleAppearanceThe active appearance stream contains no visible operators

Performance

The audit uses one page traversal and builds the JSON incrementally, avoiding repeated annotation lookup and quadratic string concatenation on large documents

See also

RepairAnnotationAppearances