Interfaz 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;
El documento gestionado inmutable retiene los bytes PDF generados y la proveniencia de las páginas de origen después de que el stream de origen del llamador se libera
WritePDF publica desde el cache con rollback en un destino seekable, mientras que RenderPage aplica los límites de DPI y de píxeles antes de asignar el bitmap resultante