IHPDFPageRenderBackend 介面

IHPDFPageRenderBackend = interface
  ['{ACCC7AA4-30B5-4C7B-A4E4-3B9A7481030A}']
  function GetName: AnsiString;
  function GetCapabilities: THPDFPageRenderBackendCapabilities;
  function IsAvailable: boolean;
  function RenderPage(const Request: THPDFPageRenderBackendRequest;
    out Bitmap: TBitmap;
    out Diagnostics: THPDFRenderFallbackDiagnostics;
    out DiagnosticDroppedCount: Integer;
    out Type3Stats: THPDFType3GlyphCacheStats;
    out TransparencyStats: THPDFTransparencyGroupTileStats): boolean;
end;

GDI 與 SIMD 逐行掃描實作這類可插拔頁面轉譯後端的契約;GetName 與 GetCapabilities 描述該後端,IsAvailable 回報其執行期先決條件(例如 CPU 指令支援)是否存在

RenderPage 依後端要求轉譯一個頁面;False 結果表示呼叫端應退回其他後端,而 out 參數攜帶後備診斷資訊,以及 Type 3 字形快取與透明度群組平鋪統計,供效能分析使用

IHPDFPageRenderBackendFailureInfo 介面、進階轉譯語意