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