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;

Niezmienny handled document przechowuje wygenerowane bajty PDF i pochodzenie stron źródłowych nawet po zwolnieniu strumienia źródłowego wywołującego

WritePDF publikuje z pamięci podręcznej z rollbackiem przy destynacji obsługującej seek, a RenderPage stosuje limity DPI i pikseli przed alokacją bitmapy wynikowej

Opcjonalne handlery dokumentów