IHPDFHandledDocument Arayüzü
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;
Değişmez handled document, çağıranın kaynak stream'i serbest bırakılmasının ardından da üretilmiş PDF byte'larını ve kaynak sayfa köken bilgisini tutar
WritePDF, seekable bir hedefte rollback ile cache'ten yayımlar; RenderPage ise sonuç bitmap'ini ayırmadan önce DPI ve piksel sınırlarını uygular