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;
呼叫端的來源串流釋放之後,不可變的已處理文件仍然保留產生的 PDF 位元組與來源頁面的出處資訊
WritePDF 從快取發布,在可定位的目的地上支援回滾;RenderPage 則在配置結果點陣圖之前先套用 DPI 與像素上限