THPDFContentSemanticStatistics Record

Collects normalized operation counts, state depth, and canonical byte size computed for one content stream

Declaration

THPDFContentSemanticStatistics= record
  TokenCount: Integer;
  OperationCount: Integer;
  StateOperationCount: Integer;
  RedundantStateOperationCount: Integer;
  NormalizedEventCount: Integer;
  MaximumGraphicsStateDepth: Integer;
  CanonicalBytes: Int64;
  ErrorOffset: Integer;
  LimitExceeded: boolean;
  Valid: boolean;
  Diagnostic: AnsiString;
end;

Unit

HPDFContentStream

Fields

FieldPurpose
TokenCountTokens parsed from the stream
OperationCountOperators found in the stream
StateOperationCountGraphics state operators tracked during normalization
RedundantStateOperationCountState operations that did not change the canonical state
NormalizedEventCountEvents in the canonical event sequence
MaximumGraphicsStateDepthDeepest graphics state nesting reached while interpreting
CanonicalBytesSize of the canonical byte form produced for comparison
ErrorOffsetByte offset where parsing or evaluation failed
LimitExceededTrue when the operation or canonical byte limit stopped the pass
ValidFalse when parsing or evaluation failed
DiagnosticFailure description when Valid is False

Usage notes

Related APIs