AR 18 - Simple Report Export Size - Font embedding - SegoeUIEmoji

Posted by: mlk20 on 3 January 2025, 8:22 am EST

    • Post Options:
    • Link

    Posted 3 January 2025, 8:22 am EST

    Hi,

    I created a simple SectionReport/from RPX, containing only on TextBox on its layout, using Arial Font.

    I exported it to PDF using AR v16.4.1.0 and the file size is 5kb.

    I exported it to PDF using AR v18.2.1.1484 and the file size is 255kb, because, I don’t know why, but SegoeUIEmoji Font is embedded (Embedded Subset) in the PDF file.

    Why is it happening?

    How can I get rid of this problem?

    Thank you

  • Posted 3 January 2025, 8:24 am EST

    Attachments added in the zip file.

  • Posted 3 January 2025, 8:25 am EST

    Attachments added in the zip file, but you can still make the tests on your own to see the problem as the use case is straightforward.

  • Posted 3 January 2025, 8:26 am EST

  • Posted 6 January 2025, 2:59 am EST

    Hi,

    We tested exporting your shared report to PDF, and it got exported to PDF of size 23 kb with only Ariel font embedded in it. In ActiveReports 18, the default value of NeverEmbedFonts is null, whereas ActiveReports 17 and versions before that have

    "Arial;Courier New;Times New Roman"
    as the default value for NeverEmbedFonts property. So, when you are exporting using ActiveReports 16, Arial font is being used but not getting embedded in the PDF, but in ActiveReports 18, it is getting embedded as well.

    In ActiveReports 18, you may explicitly specify the fonts that you don’t want to embed by passing a semicolon-delimited string of values indicating fonts that you don’t want to embed in your exported PDF as follows:

    GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport PdfExport1 = new GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport();
    PdfExport1.NeverEmbedFonts = "Arial";
    

    After specifying the NeverEmbedFonts property, you’ll observe that the exported PDF size is now 4 kb.

    Not sure why SegoeUIEmoji font is getting embedded into your exported PDF as it is not replicable at our end. Please try exporting your report to PDF using the attached sample and let us know if the SegoeUIEmoji font is still getting embedded in your exported PDF. Maybe you can also try passing SegoeUIEmoji font alog with Ariel font in the NeverEmbedFonts property as follows and see if it helps:

    GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport PdfExport1 = new GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport();
    PdfExport1.NeverEmbedFonts = "Arial;SegoeUIEmoji";
    

    Attachment: SRExport_18.2.zip

  • Posted 13 January 2025, 5:45 am EST

    Hi,

    I executed your solution. The result is the same.

    I then modified your solution (by adding:

    PdfExport1.NeverEmbedFonts = "Arial;SegoeUIEmoji";)
    and executed your solution. The result is the same.

    See attached pdfs.

    PDFExpt_support_solution.zip

    Thank you.

  • Posted 13 January 2025, 5:48 am EST

    FYI

    Windows 11 Version 24H2 OS Build 26100.2605

    VS 2022 Version 17.12.2

  • Posted 13 January 2025, 8:59 am EST

    I am using EVALUATION version of AR18. Maybe, the disclaimer at the bottom is using the SegoeUIEmoji font and this is the reason why extra font is always embedded? :

    "

    This document was created using an EVALUATION version of ActiveReports 18. Only a licensed user may legally

    create reports for use in production. Please report infractions or address questions to

    activereports.sales@mescius.com. ©. MESCIUS inc. All rights reserved.

    "

  • Posted 14 January 2025, 2:27 am EST

    Hi,

    Yes, it seems that SegoeUI Emoji font is getting embedded because of the evaluation message, due to which the size of the PDF increased at our end as well. Based on our testing, after licensing your application, this font should not be embedded, and neither should the size of the PDF increase.

    However, we have also escalated this observation to our development team for their insights on the same [Internal tracking ID: AR-34931].

    We appreciate your patience in the meantime.

  • Posted 14 January 2025, 7:38 am EST

    Hi,

    As per our developers, this is a by-design feature. The SegoeUI Emoji font is getting embedded because of the evaluation message, due to which the size of the PDF is increasing. After licensing your application, this font will not be embedded, and neither should the size of the PDF increase.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels