السجل THPDFContentToken
يمثل رمزًا واحدًا من تدفق المحتوى، مُعامِلًا أو معطى، مع نطاق بايتاته المصدرية وحمولة صورته المضمَّنة
التصريح
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;
الوحدة
HPDFContentStream
الحقول
| الحقل | الغرض |
|---|---|
Kind | صنف الرمز: ctOperator أو ctOperandString أو ctOperandHex أو ctOperandName أو ctOperandNumber أو ctOperandArray |
Op | نص المُعامِل لرموز ctOperator، أو الاسم الحرفي لمعطيات الأسماء |
StrBytes | البايتات الخام لمعطى سلسلة نصية أو سداسية عشرية، شاملة الفواصل في النطاق المصدر |
IsHex | يصبح True عندما كُتب معطى السلسلة النصية كسلسلة سداسية عشرية |
NumValue | قيمة المعطى الرقمي، شاملة تعديلات تقنين الأحرف في TJ |
Items | حمولة المصفوفة لرموز ctOperandArray |
StartOfs | إزاحة بايت الرمز كما ورد في تدفق المحتوى المصدر |
EndOfs | إزاحة البايت التي تقع مباشرة بعد الرمز |
InlineBytes | بيانات الصورة الخام بين ID وEI؛ ولا يحملها سوى رمز المُعامِل BI |
InlineKeys | مجموعة مفاتيح/قيم BI المطبَّعة؛ وتبقى فارغة لكل رمز غير BI |
ملاحظات الاستخدام
- الرموز هي وحدة العمل في
THPDFPageDisplayListوأجهزة التفسير وزوار المُعامِلات - يربط
StartOfsوEndOfsالمحرف المطابق بالبايتات الدقيقة للمعطى لأغراض البحث والاستبدال - لا يحمل بيانات الصورة المضمَّنة سوى رمز المُعامِل
BI؛ وتبقىInlineBytesوInlineKeysفارغتين في جميع الرموز الأخرى