IHPDFHandledDocument-grænseflade

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;

Det uforanderlige behandlede dokument bevarer genererede PDF-bytes og oprindelse for kildesider, efter kalderens kildestream er frigivet

WritePDF udgiver fra cachen med rollback på en søgbar destination, mens RenderPage anvender DPI- og pixelgrænser før allokering af resultatbitmaptet

Valgfri dokumenthandlere