IHPDFContentOperatorDevice 介面

為已擁有完整 PDF 圖形與資源狀態機的正式消費端提供的選用擴充

宣告

IHPDFContentOperatorDevice = interface
  procedure CheckContentCancellation;
  procedure ProcessContentOperator(
    const Tokens: THPDFContentTokenArray;
    OperatorIndex: Integer;
    out ConsumedTokenCount: Integer);
end;

共用直譯器會驗證運算子索引、每派發一個運算子就呼叫一次 CheckContentCancellation,並在運算子消耗後續符記時採用正的 ConsumedTokenCount

請以 IHPDFContentDevice 作為基底介面,只有當語意回呼無法表示消費端的完整狀態機時,才加上這個擴充

顯示清單與印刷生產