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

FieldPurpose
DocumentTrappedValue of the document's /Trapped entry (True, False, or Unknown)
TrapNetAnnotationCountNumber of TrapNet annotations found in the page's annotation array
MalformedTrapNetCountTrapNet annotations whose /Rect is missing or does not hold exactly four numbers
HasPageTrapMetadataTrue when the page carries a /PieceInfo dictionary or at least one TrapNet annotation
DiagnosticSummary sentence describing the overall trapping situation found

Usage notes

Related APIs