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;

O documento tratado imutável retém os bytes PDF gerados e a proveniência da página de origem após o fluxo de origem do chamador ser liberado

WritePDF publica a partir do cache com reversão em um destino pesquisável, enquanto RenderPage aplica limites de DPI e pixels antes de alocar o bitmap de resultado

Manipuladores de documentos opcionais