|
dxHotPDFExportReportLink DevExpress ExpressPrinting System 配接器 (
|
FastReport 配接器 QuickReport 配接器 ReportBuilder 裝置 |
|
DevExpress ExpressPrinting System(XtraPrinting / XtraReports / cxGrid printable links 等)的 PDF export adapter,使用 HotPDF 作為底層 PDF backend,而不是 DevExpress 自己的
選項記錄: type TdxHotPDFExportOptions = record Title, Author, Subject, Keywords: string; PDFVersion : TPDFVersType; // default pdf17 PDFACompliance: string; PDFXCompliance: string; Compression: TPDFCompressionLevel; // default clDefault RenderDPI : Integer; // default 200 end;
function dxHotPDFDefaultOptions: TdxHotPDFExportOptions;
File-based entry points: function dxHotPDFExportReportLinkToFile( AReportLink: TBasedxReportLink; const AOutputFileName: string; const AOptions: TdxHotPDFExportOptions): Boolean; overload; function dxHotPDFExportReportLinkToFile( AReportLink: TBasedxReportLink; const AOutputFileName: string): Boolean; overload;
Stream-based entry points: function dxHotPDFExportReportLinkToStream( AReportLink: TBasedxReportLink; AOutputStream: TStream; const AOptions: TdxHotPDFExportOptions): Boolean; overload; function dxHotPDFExportReportLinkToStream( AReportLink: TBasedxReportLink; AOutputStream: TStream): Boolean; overload;
說明 DevExpress 的 printing system 以
此 adapter 沿用 DevExpress 自家
1. 呼叫端以備妥的 2. adapter 會呼叫 3. 對每個頁面索引,它會向 link 取得 4. 新增一個 HotPDF 頁面(或重複使用自動建立的第一頁),尺寸設為計算出的 points 尺寸,然後透過 5.
選項
典型工作流程
dxComponentPrinter1.CurrentLink := cxGridReportLink1; dxHotPDFExportReportLinkToFile(cxGridReportLink1, 'Grid.pdf');
或以自訂選項:
Opts := dxHotPDFDefaultOptions; Opts.Title := 'Q1 Sales'; Opts.PDFACompliance := '3B'; Opts.RenderDPI := 300; dxHotPDFExportReportLinkToFile(cxGridReportLink1, 'Grid.pdf', Opts);
支援的 link 家族 任何
保留的能力 每個 DevExpress link 家族(cxGrid、cxScheduler、cxRichEdit、cxPivotGrid、自訂 link)輸出的向量與點陣頁面內容。GDI 解析後的文字字串(DevExpress 透過
限制 由於頁面會擷取為 enhanced metafiles,需要結構資訊的 DevExpress-specific PDF features(interactive AcroForm fields、named destinations、bookmarks / outlines)不會傳遞。PDF/A 與 PDF/X 選項欄位會轉給 HotPDF,但 OutputIntent profiles 等標準專屬資產仍由呼叫端負責。輸出是 DevExpress render 內容的忠實視覺重現,而不是 structured PDF
封裝說明 adapter 位於
請參閱: TfrxHotPDFExport, TQRHotPDFExportFilter, TppHotPDFDevice, THPDFPage.ShowMetafile, Enhanced EMF/WMF Support |