|
TfrxHotPDFExport FastReport 4 / FastReport VCL 适配器
|
QuickReport adapter ReportBuilder device DevExpress adapter |
|
FastReport 4 / FastReport VCL PDF 导出过滤器,使用 HotPDF 作为底层 PDF 后端,而不是 FastReport 自带的 PDF 写入器。适用于已经嵌入 HotPDF,并希望整个应用共用同一个 PDF 后端的项目
Delphi 声明: type TfrxHotPDFExport = class(TfrxCustomExportFilter) published property Compressed: Boolean default True; property Title, Author, Subject, Keywords: string; property PageRange: string; property PDFVersion: TPDFVersType default pdf17; property PDFACompliance: string; property PDFXCompliance: string; property CompressionLevel: TPDFCompressionLevel default clDefault; property RenderDPI: Integer default 200; property ExportMode: TfrxHotPDFExportMode default hemPageMetafile; property AutoCreateURL: Boolean default False; property FontEmbedding: Boolean default True; property NotEmbeddedFonts: TStrings; property ActivateProtection: Boolean default False; property UserPassword, OwnerPassword: string; property CryptKeyLength: THPDFKeyType default k40; property ProtectOptions: THPDFProtectOptions default []; property EncryptMetadata: Boolean default True; property DialogDefaultFileName, DialogFilter, DialogTitle: string; end;
说明 TfrxHotPDFExport 派生自
该适配器可通过三种模式导出:
1. 2. 3. 4. 5. 6. 7.
属性
典型工作流
Exp := TfrxHotPDFExport.Create(nil); try Exp.FileName := 'Report.pdf'; Exp.Title := 'Monthly Statement'; Exp.PDFVersion := pdf17; Exp.PDFACompliance := '3B'; Exp.PageRange := '1,3-5'; Exp.RenderDPI := 200; Exp.ExportMode := hemNativeObjects; Exp.DialogDefaultFileName := 'Report.pdf'; Exp.FontEmbedding := True; Exp.NotEmbeddedFonts.Add('Courier New'); Exp.ActivateProtection := True; Exp.CryptKeyLength := aes256; Exp.OwnerPassword := 'owner'; Exp.UserPassword := 'viewer'; Exp.ProtectOptions := [prPrint, prInformationCopy]; frxReport1.Export(Exp); finally Exp.Free; end;
保留的能力 图元文件模式保留 FastReport 标准布局引擎渲染的矢量和光栅页面内容,包括文本、线条、矩形、填充和位图。GDI 解析后的文本字符串也会保留,HotPDF 会通过常规字体子集路径嵌入 Windows 解析出的字体。文档级元数据也会保留。Native object 模式覆盖 memo 文本、矩形、圆角矩形、椭圆、三角形、菱形、对角线和 line view,使常见报表页眉、分隔线和标注框可保持为 PDF 原生内容
限制 需要额外结构映射的 FastReport 专用 PDF 功能(AcroForm 字段、命名目标和文档大纲)不会由该适配器传递。PDF/A 和 PDF/X 门控属性会转发给 HotPDF,但 OutputIntent profile 等标准专用资产仍由调用方负责
打包说明 该适配器作为可选附加组件发布,而不是主
另请参阅: TQRHotPDFExportFilter, TppHotPDFDevice, dxHotPDFExportReportLink, THPDFPage.ShowMetafile, 增强型 EMF/WMF 支持 |