HPDFInterpretContentTokensDevice 程序

把既有的符記陣列派發給語意或完整運算子裝置,不必再次切分內容串流

宣告

procedure HPDFInterpretContentTokensDevice(
  const Tokens: THPDFContentTokenArray;
  const Device: IHPDFContentDevice); overload;

procedure HPDFInterpretContentTokensDevice(
  const Tokens: THPDFContentTokenArray;
  const OperatorIndexes: array of Integer;
  const Device: IHPDFContentDevice); overload;

第二個多載使用已驗證的快取運算子索引,重播時不必掃描運算元符記

實作 IHPDFContentOperatorDevice 的裝置會收到完整運算子與取消檢查點,其他裝置則走能力過濾的語意派發器

HPDFInterpretContentStreamDevice 是位元組層級的進入點,把原始 content stream 位元組切詞並透過同一套裝置派發解譯;HPDFExtractGlyphsViaDevice 則經由裝置介面執行 glyph 擷取,並使用呼叫端提供的 IHPDFFontResolver

IHPDFContentOperatorDevice 介面