THPDFContentOperatorVisitStatistics Record
Summarises one operator visit pass with status, byte counts, per-action operator counts, depth maxima and diagnostics
Declaration
THPDFContentOperatorVisitStatistics= record
Status: THPDFContentOperatorVisitStatus;
SourceBytes: Int64;
OutputBytes: Int64;
ReplacementBytes: Int64;
OperationCount: Integer;
VisitedOperatorCount: Integer;
KeptOperatorCount: Integer;
DeletedOperatorCount: Integer;
ReplacedOperatorCount: Integer;
MaximumGraphicsStateDepth: Integer;
MaximumTextObjectDepth: Integer;
MaximumMarkedContentDepth: Integer;
MaximumCompatibilityDepth: Integer;
Modified: boolean;
ErrorOffset: Integer;
Diagnostic: AnsiString;
end;
Unit
HPDFContentStream
Fields
| Field | Purpose |
|---|---|
Status | Final THPDFContentOperatorVisitStatus, such as covsCompleted, covsStopped, or covsRejected |
SourceBytes | Length of the input content stream |
OutputBytes | Length of the rewritten output stream |
ReplacementBytes | Total bytes inserted by replace actions |
OperationCount | Operators found in the stream |
VisitedOperatorCount | Operators actually delivered to the listener |
KeptOperatorCount | Operators kept unchanged |
DeletedOperatorCount | Operators removed from the output |
ReplacedOperatorCount | Operators rewritten with replacement bytes |
MaximumGraphicsStateDepth | Deepest q state nesting reached |
MaximumTextObjectDepth | Deepest BT text object nesting reached |
MaximumMarkedContentDepth | Deepest marked content nesting reached |
MaximumCompatibilityDepth | Deepest BX compatibility nesting reached |
Modified | True when the output differs from the input |
ErrorOffset | Byte offset of the failure, -1 when the pass completed normally |
Diagnostic | Error text when Status is not covsCompleted |
Usage notes
- Filled by
HPDFVisitContentStreamOperatorsand by the THotPDF operator visit wrapper at page level covsInvalidInputandcovsLimitExceededreport rejected input and work budgets that were exceeded, with details inDiagnostic- The depth maxima help diagnose unbalanced
q/QorBT/ETsequences in generated content