|
TfrxHotPDFExport FastReport 4 / FastReport VCL 配接器
|
QuickReport 配接器 ReportBuilder 裝置 DevExpress 配接器 |
|
FastReport 4 / FastReport VCL PDF export filter,使用 HotPDF 作為底層 PDF backend,而不是 FastReport 自己內建的 PDF writer。適用於已嵌入 HotPDF,並希望整個應用程式共用單一 PDF backend 的專案
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 繼承自
adapter 可透過下列三種模式之一匯出:
1. 2. 3. 4. 5. 6. 7.
屬性
Typical workflow
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.AutoCreateURL := True; 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;
Capabilities preserved 整頁與物件 canvas 模式都會保留 FastReport 標準 layout engine 輸出的向量與點陣頁面內容。原生物件模式目前會保留支援的 memo 文字(輸出為 PDF 文字,含背景、水平與垂直對齊及框線樣式)、圖片 view(輸出為 image XObjects)、簡單圖形(輸出為 PDF 幾何)、線條 view(輸出為筆畫)與 view URL(輸出為 URI 連結註解)。文件層級 metadata 在所有模式下都會保留
限制 需要額外結構對應的 FastReport-specific PDF features(AcroForm fields、named destinations 與 document outlines)不會由此 adapter 傳遞。PDF/A 與 PDF/X 的閘門屬性會轉給 HotPDF,但 OutputIntent profiles 等標準專屬資產仍由呼叫端負責
封裝說明 adapter 以選用式 add-on 形式發佈,而不是主要
See also: TQRHotPDFExportFilter, TppHotPDFDevice, dxHotPDFExportReportLink, THPDFPage.ShowMetafile, Enhanced EMF/WMF Support |