|
dxHotPDFExportReportLink DevExpress ExpressPrinting System 适配器(
|
FastReport adapter QuickReport adapter ReportBuilder device |
|
DevExpress ExpressPrinting System(XtraPrinting / XtraReports / cxGrid 可打印链接等)PDF 导出适配器,使用 HotPDF 作为底层 PDF 后端,替代 DevExpress 自带的
选项 record: 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 的打印体系围绕
该适配器复刻了 DevExpress 自家
1. 调用方携带准备好的 TBasedxReportLink 调用 2. The adapter calls 3. 对每个页面索引,向 link 请求 4. 新增一个 HotPDF 页面(或复用自动创建的第一页),按算出的点数尺寸设定大小,然后经 5.
选项
典型工作流
dxComponentPrinter1.CurrentLink := cxGridReportLink1; dxHotPDFExportReportLinkToFile(cxGridReportLink1, 'Grid.pdf');
Or with custom options:
Opts := dxHotPDFDefaultOptions; Opts.Title := 'Q1 Sales'; Opts.PDFACompliance := '3B'; Opts.RenderDPI := 300; dxHotPDFExportReportLinkToFile(cxGridReportLink1, 'Grid.pdf', Opts);
支持的 link 类型族 的任意后代。
保留的能力 每个 DevExpress link 类型族(cxGrid、cxScheduler、cxRichEdit、cxPivotGrid、自定义链接)输出的矢量和光栅页面内容。GDI 解析后的文本字符串(DevExpress 经
限制 of the metafile bridge 由于页面以增强型图元文件捕获,需要结构信息的 DevExpress 专用 PDF 功能(交互式 AcroForm 字段、命名目标、书签 / 大纲)不会被传递。PDF/A 和 PDF/X 选项字段会转发给 HotPDF,但 OutputIntent profile 等标准专用资产仍由调用方负责。输出是对 DevExpress 渲染结果的忠实视觉再现,不是结构化 PDF。
打包说明 适配器位于
另请参阅: TfrxHotPDFExport, TQRHotPDFExportFilter, TppHotPDFDevice, THPDFPage.ShowMetafile, 增强型 EMF/WMF 支持 |