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.

Comments

  • gpigpi
    edited 6:07AM
    See changes.txt for FR 4.10:
    wrote:
    + added option EmbedProt which allows to disable embedding fonts into an encrypted PDF file
  • edited 6:07AM
    gpi wrote: »
    See changes.txt for FR 4.10:
    gpi wrote: »
    + added option EmbedProt which allows to disable embedding fonts into an encrypted PDF file
    EmbedProt seems to do work just like EmbeddedFonts, i.e. setting it to false and using a password still results in just dots instead of text. Using true results in a huge file.
  • edited October 2010
    This solution does not work for us as it results in the same issue that we have before. Is there any way that when we set the EmbedProt property to false that the text in the PDF becomes unaffected i.e. the text is normal and not dotty.
  • Can someone please provide me with feedback on this as we have a live application and all our users are having issues with the huge file sizes?
  • edited October 2010
    It is not the password which causes the massive increase but the embedding of fonts, except that the password for encryption results in the automatic embedding of fonts.

    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.
  • gpigpi
    edited 6:07AM
    wrote:
    A customer sent me a FR template which printed dots in place where font 'calibri' was used (no password/encryption, fonts not embedded)
    Tell you customer replace font name with 'Calibri'
  • edited 6:07AM
    here is my workaround solution. It's not an universal one, but helped me in my case.
    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

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.