THPDFArrayItem Record

콘텐츠 스트림의 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;

문자열 항목은 현재 텍스트 위치에 표시되고 음수는 kerning 조정으로 위치를 앞땡깁니다. IsString이 둘을 구분하고, IsHex는 16진 리터럴임을 표시하며, StrBytes는 피연산자의 raw 바이트를, NumValue는 조정 값을 담습니다

StartOfs와 EndOfs는 소스 콘텐츠 스트림에서 피연산자 전체를 덮는 바이트 오프셋으로, '(' ')' 또는 '<' '>' 구분자까지 포함합니다. 덕분에 매칭된 글리프를 그 글리프를 만들어 낸 바이트로 되돌아볼 수 있습니다

THPDFContentToken.Items는 ctOperandArray 토큰의 배열 payload를 담습니다

THPDFContentToken · 콘텐츠 스트림 의미 비교