Záznam THPDFContentToken

Reprezentuje jeden token obsahového streamu, operátor nebo operand, se zdrojovým bajtovým rozsahem a daty vloženého obrázku

Deklarace

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;

Jednotka

HPDFContentStream

Pole

PoleÚčel
KindTřída tokenu: ctOperator, ctOperandString, ctOperandHex, ctOperandName, ctOperandNumber nebo ctOperandArray
OpText operátoru u tokenů ctOperator, nebo literál názvu u operandů názvů
StrBytesSurové bajty řetězcového nebo hex operandu, včetně oddělovačů ve zdrojovém rozsahu
IsHexTrue, když byl řetězcový operand zapsán jako hex řetězec
NumValueHodnota číselného operandu, včetně kerningových korekcí TJ
ItemsObsah pole u tokenů ctOperandArray
StartOfsBajtový offset tokenu tak, jak je zapsán ve zdrojovém obsahovém streamu
EndOfsBajtový offset těsně za tokenem
InlineBytesSurová obrazová data mezi ID a EI; nese je jen token operátoru BI
InlineKeysNormalizovaná sada klíčů a hodnot BI; prázdná pro každý token jiný než BI

Poznámky k použití

Související API