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 conserva los bytes PDF generados y la procedencia de la página de origen después de que se libere el flujo de origen del llamador
WritePDF publica desde la caché con reversión en un destino buscable, mientras que RenderPage aplica los límites de DPI y de píxeles antes de asignar el mapa de bits de resultado