IHPDFHandledDocument Interface

IHPDFHandledDocument = interface(IInterface)
  function GetFormat: THPDFHandledDocumentFormat;
  function GetHandlerName: string;
  function GetPageCount: Integer;
  function GetPageSourceName(PageIndex: Integer): string;
  function WritePDF(Destination: TStream;
    const Options: THPDFDocumentHandlerOptions;
    out Info: THPDFDocumentHandlerInfo): boolean;
  function RenderPage(PageIndex, DPI: Integer;
    const Options: THPDFDocumentHandlerOptions; out Bitmap: TBitmap;
    out Info: THPDFDocumentHandlerInfo): boolean;
end;

不変な処理済みドキュメントは、呼び出し元のソースストリームが解放された後も、生成された PDF バイトとソースページの出自を保持します

WritePDF はシーク可能な書き込み先でロールバック付きのキャッシュから公開し、RenderPage は結果ビットマップを割り当てる前に DPI とピクセル制限を適用します

Optional Document Handlers