原創(chuàng)|使用教程|編輯:何家巧|2022-12-22 11:11:46.470|閱讀 331 次
概述:今天我們將向大家介紹 報(bào)表工具FastReport VCL 的導(dǎo)出選項(xiàng)功能—— PDF/A。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關(guān)鏈接:
Fastreport是目前世界上主流的圖表控件,具有超高性價(jià)比,以更具成本優(yōu)勢的價(jià)格,便能提供功能齊全的報(bào)表解決方案,連續(xù)三年蟬聯(lián)全球文檔創(chuàng)建組件和庫的“ Top 50 Publishers”獎(jiǎng)。
慧都科技是Fast Reports在中國區(qū)十余年的友好合作伙伴,連續(xù)多年被Fast Reports授予中國區(qū)Best Partner稱號(hào)。
今天我們將向您介紹 FastReport VCL 的導(dǎo)出選項(xiàng),我們的開發(fā)團(tuán)隊(duì)在每次更新時(shí)都會(huì)添加許多新功能。我們早在 2017 年就添加的導(dǎo)出格式,今天我們來一起討論 PDF/A 及其功能。
	
由于包含所有數(shù)據(jù),PDF/A 文檔將比 PDF 稍大。
創(chuàng)建模板后,讓我們切換到完成報(bào)表的預(yù)覽模式。在左上角找到導(dǎo)出為 PDF。
	
 
	
 
A 級(jí)一致性旨在通過允許輔助軟件(例如屏幕閱讀器)更精確地提取和解釋文件內(nèi)容,來提高身體受損用戶對一致性文件的可訪問性
	
 
PDF/A-2 標(biāo)準(zhǔn) (ISO 19005-2)
PDF/A-2 解決了 PDF 版本 1.5、1.6 和 1.7 添加的一些新功能。PDF/A-2 與 PDF/A-1 具有向后兼容性,這意味著所有 PDF/A-1 文檔都必須與 PDF/A-2 兼容。但是,PDF/A-2 不一定符合 PDF/A-1。
	
 
PDF/A-3 標(biāo)準(zhǔn) (ISO 19005-3)
PDF/A-3 在一個(gè)重要方面不同于 PDF/A-2:它允許嵌入。此外,它不僅可以是其他 PDF/A(PDF/A-2 支持),還可以是任何其他文件。這對于存檔至關(guān)重要。
	
 
	
 
這是添加到 PDF 文件的內(nèi)部信息的部分:標(biāo)題、作者、主題、關(guān)鍵字(您可以將 PDF 上傳到網(wǎng)絡(luò),它們有很好的索引)、PDF 創(chuàng)建者和文檔制作者。
	
 
這是添加到 PDF 文件的內(nèi)部信息的部分:標(biāo)題、作者、主題、關(guān)鍵字(您可以將 PDF 上傳到網(wǎng)絡(luò),它們有很好的索引)、PDF 創(chuàng)建者和文檔制作者。
 
 
	
 
	
 
如何從 Delphi 或 Lazarus 代碼生成 PDF/A
procedure TForm1.Button1Click(Sender: TObject);
begin
 {Generate a report. We must generate a report before exporting}
 frxReport1.PrepareReport();
 {Set the range of exported pages. All pages of the generated report are exported by default}
 frxPDFExport1.PageNumbers := '2-3';
 {Set the PDF standard TPDFStandard = (psNone, psPDFA_1a, psPDFA_1b, psPDFA_2a, psPDFA_2b, psPDFA_3a, psPDFA_3b);  Adding frxExportPDFHelpers module to the uses list is required: uses frxExportPDFHelpers;}
 frxPDFExport1.PDFStandard := psNone;
 {For PDFStandard = psNone you can set the version of the PDF standard TPDFVersion = (pv14, pv15, pv16, pv17);  Adding frxExportPDFHelpers module to the uses list is required: uses frxExportPDFHelpers;}
 frxPDFExport1.PDFVersion := pv17;
 {You can set compression for a smaller file size}
 frxPDFExport1.Compressed := True;
 {Set whether fonts should be embedded in the resulting document.  Font embedding significantly increases the size of the resulting document}
 frxPDFExport1.EmbeddedFonts := False;
 {Set whether to export the background image of the page}
 frxPDFExport1.Background := True;
 {Disable the export of print optimized objects.}
 {When the option is enabled, the image quality will be better, but they will be 9 times larger}
 frxPDFExport1.PrintOptimized := False;
 {Set whether the resulting PDF will include an external table of contents, as in the original report}
 frxPDFExport1.Outline := False;
 {Set whether to export images with transparency}
 frxPDFExport1.Transparency := True;
 {You can set the desired DPI for images. Enabling this option disables the SaveOriginalImages function,}
 {which allows saving images in their original form.}
 frxPDFExport1.PictureDPI := 150;
 {Set compression ratio of raster images}
 frxPDFExport1.Quality := 95;
 {Set whether to open the resulting file after export}
 frxPDFExport1.OpenAfterExport := False;
 {Set whether to display export progress  (show which page is currently being exported)}
 frxPDFExport1.ShowProgress := False;
 {Set whether to display a dialog box with export filter settings}
 frxPDFExport1.ShowDialog := False;
 {Set the name of the resulting file. Note that if you do not set a file name and disable the export filter dialog window,}
 {the dialog will still be displayed for file name selection.}
 frxPDFExport1.FileName := 'C:\Output\test.pdf';
 {Fill in the corresponding fields of the Information tab}
 frxPDFExport1.Title := 'Your Title';
 frxPDFExport1.Author := 'Your Name';
 frxPDFExport1.Subject := 'Your Subject';
 frxPDFExport1.Keywords := 'Your Keywords';
 frxPDFExport1.Creator := 'Creator Name';
 frxPDFExport1.Producer := 'Producer Name';
 {Fill in the corresponding fields of the Security tab}
 frxPDFExport1.UserPassword := 'User Password';
 frxPDFExport1.OwnerPassword := 'Owner Password';
 frxPDFExport1.ProtectionFlags := [ePrint, eModify, eCopy, eAnnot];
 {Set up viewer settings (Viewer tab)}
 frxPDFExport1.HideToolbar := False;
 frxPDFExport1.HideMenubar := False;
 frxPDFExport1.HideWindowUI := False;
 frxPDFExport1.FitWindow := False;
 frxPDFExport1.CenterWindow := False;
 frxPDFExport1.PrintScaling := False;
 {Export the report}
 frxReport1.Export(frxPDFExport1);
end;
本次FastReport使用教程中關(guān)于如何使用FastReport VCL 設(shè)計(jì)器中的 PDF/A的相關(guān)內(nèi)容就到這里了,更多教程進(jìn)入慧都官網(wǎng)查看。
	更多產(chǎn)品授權(quán)信息點(diǎn)擊查看FastReport VCL價(jià)格,或者咨詢慧都在線客服。
	
	
FastReport技術(shù)QQ群:536197826   歡迎進(jìn)群一起討論
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@ke049m.cn