THPDFContentTokenKind Type
Classifies a single token produced by the content-stream lexer
Declaration
THPDFContentTokenKind= (ctOperator, ctOperandString, ctOperandHex,
ctOperandName, ctOperandNumber, ctOperandArray);
Unit
HPDFContentStream
Values
| Value | Purpose |
|---|---|
ctOperator | Operator or structural delimiter token, for instance Tj or the closing bracket of an array |
ctOperandString | Literal string operand written between parenthesis delimiters |
ctOperandHex | Hexadecimal string operand written between angle-bracket delimiters |
ctOperandName | Name operand introduced by a slash |
ctOperandNumber | Numeric operand |
ctOperandArray | Bracketed array token whose payload carries TJ-style string and number items |
Usage notes
- The companion token record carries
StartOfs/EndOfsspans, so editors can rewrite an operand in place according to kind - String replacement features match on
ctOperandStringandctOperandHexwhilst leaving names and numbers untouched - Text-extraction features read
ctOperandArrayitems, where strings are displayed and negative numbers advance the text position