|
TfrxHotPDFExport FastReport 4 / FastReport VCL adapter
|
QuickReport adapter ReportBuilder device DevExpress adapter |
|
FastReport 4 / FastReport VCL PDF export filter that uses HotPDF as the underlying PDF backend instead of FastReport's own built-in PDF writer. Intended for projects that already embed HotPDF and want a single PDF backend across the whole application
Delphi declaration: 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; end;
Description TfrxHotPDFExport descends from
The adapter can export through one of three modes:
1. 2. 3. 4. 5. 6. 7.
Properties
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 Whole-page and object-canvas modes preserve vector and raster page content rendered by FastReport's standard layout engine. Native-object mode currently preserves supported memo text as PDF text with background, horizontal and vertical alignment, and frame styles; picture views as image XObjects; simple shapes as PDF geometry; line views as strokes; and view URLs as URI link annotations. Document-level metadata is preserved in every mode
Limitations FastReport-specific PDF features that require additional structural mapping (AcroForm fields, named destinations, and document outlines) are not propagated by this adapter. PDF/A and PDF/X gate properties are forwarded to HotPDF, but standard-specific assets such as OutputIntent profiles remain the caller's responsibility
Packaging note The adapter is distributed as an opt-in add-on rather than a dependency of the main
See also: TQRHotPDFExportFilter, TppHotPDFDevice, dxHotPDFExportReportLink, THPDFPage.ShowMetafile, Enhanced EMF/WMF Support |