Interface IHPDFHandledDocument

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;

Le document géré immuable conserve les octets PDF générés et la provenance des pages sources après la libération du flux source de l'appelant

WritePDF publie à partir du cache avec un retour sur étape sur une destination adressable, tandis que RenderPage applique les limites de DPI et de pixels avant d'allouer le bitmap résultat

Gestionnaires de documents facultatifs