Fonts in PDF not displayed correctly

Posted by: mdynna on 7 November 2024, 12:14 pm EST

  • Posted 7 November 2024, 12:14 pm EST - Updated 7 November 2024, 12:19 pm EST

    Since releasing a new version of our software using Active Reports 17, our customers are reporting that some reports exported to PDF do not display fonts correctly. The reports only use the three “never embed” (by default) fonts of Arial, Courier New, Times New Roman.

    It’s inconsistent in that some devices will have a problem and others won’t with the same document, but no one had an issue on our previous version when we used Active Reports 15. Has there been any reported issues with PDF exports?

  • Posted 8 November 2024, 1:14 am EST

    Hi Mark,

    There is a possibility that the machine on which you are observing garbage text does not have the required font installed on it; hence, the required font is not getting embedded while exporting to PDF. To overcome the issue, you can use the Custom Fonts Resolver. You would have to include your custom font file (.ttf format) in your application and assign a FontResolver object to your report.FontResolver property, which will embed the font in your project to be used at runtime. It will then embed the font in the exported PDF file and should resolve your issue.

    You may refer to the attached documentation link to learn more about Custom Font Resolver: Custom Font Resolver

    Along with that, you may also refer to the attached sample demonstrating Custom Font Resolver. We hope this helps, and let us know if you face any issues or have any further questions, and we’ll be glad to assist! If the issue persists at your end, please provide us with a stripped-down and runnable sample with necessary data and font files replicating the issue so that we can investigate the same at our end and get back to you accordingly.

    Attachment:CustomFontSR.zip

  • Posted 8 November 2024, 10:54 am EST

    I don’t think we’re using a custom font. The text sections shown above are set to Arial 9pt in the report. The only other font used on the report is Courier New. These are two of the tree default “never embed” fonts in the PDF export object.

    We did have our IT confirm that all three of the “never embed” fonts were installed on the device having the display issue.

  • Posted 11 November 2024, 12:15 am EST

    Hi Mark,

    In that case, can you please provide us with a stripped-down and runnable sample replicating the issue so that we can investigate the same at our end and get back to you accordingly?

Need extra support?

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

Learn More

Forum Channels