Registro THPDFContentToken

Representa un token del flujo de contenido, operador u operando, con su tramo de bytes en la fuente y su carga de imagen en línea

Declaración

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;

Unidad

HPDFContentStream

Campos

CampoPropósito
KindClase de token: ctOperator, ctOperandString, ctOperandHex, ctOperandName, ctOperandNumber o ctOperandArray
OpTexto del operador para tokens ctOperator, o el literal del nombre para operandos nombre
StrBytesBytes en bruto de un operando de cadena o hexadecimal, incluidos los delimitadores en el tramo de la fuente
IsHexTrue cuando el operando de cadena se escribió como cadena hexadecimal
NumValueValor del operando numérico, incluidos los ajustes de kerning de TJ
ItemsCarga de array para tokens ctOperandArray
StartOfsOffset de bytes del token tal como está escrito en el flujo de contenido de la fuente
EndOfsOffset de bytes justo después del token
InlineBytesDatos de imagen en bruto entre ID y EI; solo lo lleva el token del operador BI
InlineKeysConjunto normalizado de claves y valores del BI; vacío para todos los tokens distintos de BI

Notas de uso

APIs relacionadas