THPDFContentToken Record

Vertegenwoordigt één contentstroom-token, operator of operand, met zijn bronbytebereik en inline-afbeeldingenpayload

Declaratie

THPDFContentToken= record
  Kind: THPDFContentTokenKind;
  Op: AnsiString;           // operator text (ctOperator) or name literal
  StrBytes: AnsiString;     // raw bytes of string/hex operand
  IsHex: boolean;
  NumValue: Double;         // numeric operand
  Items: THPDFArrayItems;   // ctOperandArray payload
  // StartOfs/EndOfs are byte offsets into the source content stream spanning
  // the operand as written. For a string/hex operand this covers the full
  // literal including its '(' ')' or '<' '>' delimiters; operators and
  // other operands record their span too. Search/replace uses these to map
  // a matched glyph back to the bytes that produced it
  StartOfs: Integer;
  EndOfs: Integer;
  // Inline image payload (only the 'BI' operator token carries these;
  // every other token leaves them at their default zeros). InlineBytes is
  // the raw image data between ID and EI; InlineKeys is the normalised
  // BI key/value set. Both default to empty when not an inline image
  InlineBytes: SysUtils.TBytes;
  InlineKeys: THPDFInlineImgKeys;
end;

Eenheid

HPDFContentStream

Velden

VeldDoel
KindTokensoort: ctOperator, ctOperandString, ctOperandHex, ctOperandName, ctOperandNumber of ctOperandArray
OpOperatortekst voor ctOperator-tokens, of de letterlijke naam voor naam-operanden
StrBytesRauwe bytes van een string- of hex-operand, inclusief de scheidingstekens in het bronbereik
IsHexTrue wanneer de string-operand als hex-string was geschreven
NumValueNumerieke operandwaarde, inclusief TJ-kerningcorrecties
ItemsArray-payload voor ctOperandArray-tokens
StartOfsByteoffset van het token zoals geschreven in de broncontentstroom
EndOfsByteoffset net voorbij het token
InlineBytesRauwe afbeeldingsgegevens tussen ID en EI; alleen het BI-operatortoken draagt ze
InlineKeysGenormaliseerde BI-sleutel/waardeset; leeg voor elk ander token dan BI

Gebruiksopmerkingen

Gerelateerde API's