|
TfrxHotPDFExport FastReport 4 / FastReport VCL adapter (
|
QuickReport adapter ReportBuilder device DevExpress adapter |
|
ตัวกรองส่งออก PDF สำหรับ FastReport 4 / FastReport VCL ที่ใช้ HotPDF เป็น PDF backend แทน PDF writer ในตัวของ FastReport เหมาะสำหรับโปรเจกต์ที่ฝัง HotPDF อยู่แล้วและต้องการใช้ PDF backend เดียวกันทั้งแอปพลิเคชัน
Delphi declaration: type TfrxHotPDFExport = class(TfrxCustomExportFilter) published property Compressed: Boolean default True; property Title, Author, Subject, Keywords: string; property PDFVersion: TPDFVersType default pdf17; property CompressionLevel: TPDFCompressionLevel default clDefault; property RenderDPI: Integer default 200; end;
คำอธิบาย
แทนที่จะเขียน PDF emitter แบบ per-object ของ FastReport ใหม่ทั้งหมด adapter นี้ส่งแต่ละ prepared page ผ่าน enhanced-metafile importer ของ HotPDF:
1. 2. 3. 4. 5.
คุณสมบัติ
Typical workflow
Exp := TfrxHotPDFExport.Create(nil); try Exp.FileName := 'Report.pdf'; Exp.Title := 'Monthly Statement'; Exp.PDFVersion := pdf17; Exp.RenderDPI := 200; frxReport1.Export(Exp); finally Exp.Free; end;
Capabilities preserved vector และ raster page content (text, lines, rectangles, fills, bitmaps) ที่ render โดย layout engine มาตรฐานของ FastReport รวมถึง text strings ที่ GDI resolve แล้ว โดย HotPDF ฝัง Windows-resolved fonts ผ่าน HotPDF font subset path ปกติ และ document-level metadata
Limitations of the metafile bridge เนื่องจาก pages ถูกจับเป็น enhanced metafiles ฟีเจอร์ PDF เฉพาะของ FastReport ที่ต้องใช้ structural information เช่น AcroForm fields, named destinations, document outlines, PDF/A หรือ PDF/X conformance gates จะไม่ถูกส่งต่อ output คือการทำซ้ำภาพที่ FastReport render ไปยัง screen / printer อย่างถูกต้อง ไม่ใช่ structured PDF โปรเจกต์ที่ต้องการ AcroForm output หรือ PDF/A conformance ควรขับ HotPDF โดยตรงผ่าน native API
Packaging note adapter อยู่ใน
See also: TQRHotPDFExportFilter, TppHotPDFDevice, dxHotPDFExportReportLink, THPDFPage.ShowMetafile, Enhanced EMF/WMF Support |