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;

O documento imutável processado mantém os bytes PDF gerados e a proveniência das páginas de origem depois de o stream de origem do chamador ser libertado

WritePDF publica a partir da cache, com rollback num destino com suporte a seek, enquanto RenderPage aplica os limites de DPI e de píxeis antes de alocar o bitmap de resultado

Manipuladores de documentos opcionais