THPDFArrayItem 记录

内容流 TJ [...] 数组里的一个操作数,字符串与数字在此交错出现

THPDFArrayItem = record
  IsString: boolean;
  IsHex: boolean;
  StrBytes: AnsiString;   // raw bytes of a string/hex operand
  NumValue: Double;        // numeric operand (TJ kerning adjust)
  StartOfs: Integer;       // byte offset of the operand in the source stream
  EndOfs: Integer;         // byte offset just past the operand
end;

字符串项按当前文本位置绘制,负数则作为字距调整推进位置;IsString 区分这两类,IsHex 标记十六进制字面量,StrBytes 保存操作数原始字节,NumValue 存调整量

StartOfs 与 EndOfs 是相对源内容流的字节偏移,覆盖完整字面量连同其 '(' ')' 或 '<' '>' 定界符,匹配到的字形由此能回溯到产生它的那些字节

THPDFContentToken.Items 携带 ctOperandArray 令牌的数组载荷

THPDFContentToken · 内容流语义比较