THPDFTrappingInfo Record
Reports the document trapped flag, TrapNet annotation counts, and page trap metadata for print production checks
Declaration
THPDFTrappingInfo= record
DocumentTrapped: AnsiString;
TrapNetAnnotationCount: Integer;
MalformedTrapNetCount: Integer;
HasPageTrapMetadata: boolean;
Diagnostic: AnsiString;
end;
Unit
HPDFDoc
Fields
| Field | Purpose |
|---|---|
DocumentTrapped | Value of the document's /Trapped entry (True, False, or Unknown) |
TrapNetAnnotationCount | Number of TrapNet annotations found in the page's annotation array |
MalformedTrapNetCount | TrapNet annotations whose /Rect is missing or does not hold exactly four numbers |
HasPageTrapMetadata | True when the page carries a /PieceInfo dictionary or at least one TrapNet annotation |
Diagnostic | Summary sentence describing the overall trapping situation found |
Usage notes
- Fill it with
InspectLoadedPageTrappingfor one page index; an out-of-range index returns false with a defaulted record - A document that declares /Trapped True but has no page TrapNet annotations is flagged in
Diagnosticso prepress can double-check MalformedTrapNetCountabove zero means some trap zones cannot be trusted by RIP software