Export to PDF - File size increases
The file size of my PDF increases from 99KBs to 880KBs when i set when i set the owner password(TfrxPDFExport.OwnerPassword := 'password'). This happens becuase the EmbeddedFonts property of TfrxPDFExport is forced to true but when i try and force it to False then all the text in my PDF is printed as dots. Can anyone please help with a solution that will not increase the file size with the Owner or User password set?
We need to set the protection flags and passowords and still be able to email multiple files to our clients. This becomes impossible when the files we generate are so enormous.
Please help
Thanks.
We need to set the protection flags and passowords and still be able to email multiple files to our clients. This becomes impossible when the files we generate are so enormous.
Please help
Thanks.
Comments
There may still be another problem with PDF's. A customer sent me a FR template which printed dots in place where font 'calibri' was used (no password/encryption, fonts not embedded). Even though I have Win 7 and have the 'Calibri' font on my system it still displayed dots in Acrobat reader (latest version). I was able to get it to work by changing the calibri font to Tahoma.
It is not clear to me whether the problem is in Acrobat, maybe the font names are case sensitive, or in the FR export component.
Testing against Word 2010 I see that the PDF refers to 'Embedded subset' whereas FR states 'Embedded'. I suspect that word only inserts the font characters for the letters actually used whereas FR inserts the whole character set for every font and every style used. The result is the massive increase in file size we see.
Word, 1 A4 page, 4 font/styles used (embedded), size 236kb
Compare that to the minimum file size of an FR report with embedded fonts. Probably double or more.
Customers shit all over me because of the file sizes and even talk about replacing mywhole application. I'll have to start thinking about replacing the report writer if this export problem is not solved in the coming FR5. The other issue outstanding is that at present PDF export invoices cannot be made to comply with statutory requirements. IOW, strictly speaking, all electronic invoices are not valid.
Some kind of a response from someone at FR would also be appreciated.
The main idea: use in report font with small file size.
Details is here: http://dev-doc.blogspot.com/2013/03/fastre...-huge-file.html