PDF file size with feUnicode font encoding

Hi,

I have changed the font encoding on several reports from faAscii to faUnicode and noticed that a single page PDF has gone up from 12kb to 1661kb.

I have made the change so that currency symbols print out correctly. Is there a way of accomplishing this without such a large increasein the document size?

I have Delphi 10.4.1 with ReportBuilder 20.03 build 182. The PDF Settings I have :
EmbeddedFontOptions = []
Encryption disabled
ImageCompressionLevel = 25
PDFAFormat = pafNone

Many thanks

Comments

  • Hi Steve,

    For Unicode encoding with PDF, the fonts using Unicode characters need to be embedded into the PDF file. This can increase the PDF file size significantly.

    1. Be sure you are using font subsetting to reduce the embedded font size. EmbeddedFontOptions := [efUseSubset];

    2. Fonts that do not require Unicode characters may be added to the ForceAsciiFonts list to reduce the file size further.

    See the following article for more information on PDF and Unicode text with ReportBuilder:

    http://rbwiki.digital-metaphors.com/output/pdf/pdf-unicode-support/


    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
Sign In or Register to comment.