THPDFContentToken Record

Repräsentiert ein Content-Stream-Token, Operator oder Operand, mit seinem Quell-Byte-Span und seinen Inline-Bild-Nutzdaten

Deklaration

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;

Unit

HPDFContentStream

Felder

FeldZweck
KindTokenklasse: ctOperator, ctOperandString, ctOperandHex, ctOperandName, ctOperandNumber oder ctOperandArray
OpOperatortext bei ctOperator-Tokens bzw. das Name-Literal bei Name-Operanden
StrBytesRohbytes eines String- oder Hex-Operanden, einschließlich der Begrenzer im Quell-Span
IsHexTrue, wenn der String-Operand als Hex-String geschrieben war
NumValueNumerischer Operandenwert, einschließlich TJ-Unterschneidungskorrekturen
ItemsArray-Nutzdaten für ctOperandArray-Tokens
StartOfsByte-Offset des Tokens, wie es im Quell-Inhaltsstrom geschrieben steht
EndOfsByte-Offset direkt hinter dem Token
InlineBytesRohbilddaten zwischen ID und EI; nur das BI-Operator-Token trägt sie
InlineKeysNormalisiertes BI-Schlüssel/Wert-Set; bei jedem Token außer BI leer

Verwendungshinweise

Verwandte APIs