PDF Exporting problem
This is a report that loads a wmf file , after exporting to pdf the signature not appears
if a do the same with bitmap the signature is ok , but the quality is more poor as wmf
Any idea to overcome this problem
Thank you Vagelis Bekyros
Comments
Can we have a bit more information?
Which version of FastReport are you using? Which options are set with frxPDFexport Component? Which PDF standard did you choose?
Cheers, Paul
Hi i am using last version 6.9.12 with Delphi XE 10.3.3 i have try all the PDF standard versions
*When exporting as bitmap or jpg not happen, i prefer wmf because my RTF data is using WPTOOLS that is an Word Processor and exporting to metada (wmf,emf) file is reliable,.
If i use directly WPTOOLS (print and exporting to PDF ) i have no problem, but in some situations we need FastReport engine and the only way to use FastReport and WPTOOLS together is to convert the wptools rtf data to a whole wmf file that is loading from Fatsreport via tfrxpictureview
(each wmf file is one page)
My Code
Mainreport.Clear;
FFilename:=formatdatetime('ddmmyyyyhhmmss',now)+'.pdf';
Mainreport.LoadFromFile(getexepath+'memos.fr3');
Createwmffile(results.FieldByName('ORDERID').Value,results.FieldByName('HOSTID').Value);// Creates a wmf file
Mainreport.PrepareReport(True);
frxPDFExport1.FileName:=getexepath+FFilename ;
frxPDFExport1.ExportNotPrintable:=false;
frxPDFExport1.PrintOptimized:=true;
frxPDFExport1.SaveOriginalImages:=true;
Mainreport.Export(frxPDFExport1);
MainReport onbeforeprint Event
if sender.name='Rtfpicture'
then
Begin
tfrxpictureview(sender).picture:=nil;
if fileexists(getexepath+'memo.wmf')
then
tfrxpictureview(sender).picture.loadfromfile(getexepath+'memo.wmf');
if fileexists(getexepath+'memo.bmp')
then
tfrxpictureview(sender).picture.loadfromfile(getexepath+'memo.bmp');
end;
please try it to export this wmf file , rename the ext to wmf
Than you Vagelis Bekyros
Interesting challenge! When dealing with image formats, especially for things like signatures, you've got to balance file size and quality. WMF is great for vector graphics, but bitmap can lose clarity. Maybe explore Papa's Pizzeria online for some quick and easy visual inspiration, then try experimenting with different compression settings or consider using a vector-based signature tool. Good luck finding the perfect solution!