Embed font in PDF in c# application

Posted by: jyoti.adpekar on 12 August 2020, 12:25 pm EST

    • Post Options:
    • Link

    Posted 12 August 2020, 12:25 pm EST

    Hi,

    I want to embed “Arial Unicode MS” font in PDF report. Our application would be deploying in Wincell container, I am using ActiveReports build version 11.0.8705.0.

    Could you please suggest a solution.

    Regards,

    Jyoti

  • Posted 13 August 2020, 1:48 am EST - Updated 30 September 2022, 5:02 pm EST

    Hello,

    I have tried to export the report into PDF after using the “Arial Unicode MS” font in the report and found that it is successfully embedded in the PDF file. Please refer to the attached image.

    Could you please explain if I am missing something.

    Thanks,

    Mohit

  • Posted 17 August 2020, 5:39 am EST

    Hello Mohit,

    We are trying to add “Arial Unicode MS” font through “custom font factory” in application,

    As “Arial Unicode MS” font is not installed/available in Wincell container (windowsservercore 2019),

    we need a solution to add a font inside the application and that font should get embed into a PDF report during its runtime.We are publish PDF report in server side.

    We are using Grapecity ActiveReports 11 standard license.

    We tried with type=“GrapeCity.ActiveReports.Web.FontFactorySectionHandler, GrapeCity.ActiveReports.Web.v11” and getting null in stream,

    is it because of License what we are referring.

    Could you please share any sample c# application which does the above scenario.

    Thanks,

    Jyoti

  • Posted 17 August 2020, 7:10 am EST

    Hello,

    “Custom Font Factory” is Pro feature. It does not work with the Standard license. You need to purchase a professional license for the same. Please refer the following link for more information:

    https://help.grapecity.com/activereports/webhelp/AR11/webframe.html#ActiveReportsEditions%20.html

    Thanks,

    Mohit

  • Posted 29 August 2020, 2:59 am EST

    Thank you Mohit for the Reply,

    In one of AR forum it has given like “FontFactorySectionHandler Represents the FontFactorySectionHandler implementation that is specific for Web projects”

    http://help.grapecity.com/activereports/webhelp/AR9/GrapeCity.ActiveReports.Web.v9~GrapeCity.ActiveReports.Web_namespace.html

    We are trying to generate PDF report on Server side. As per mentioned above,

    Is “Custom Font Factory” supports only for web projects or does it supports for server side rendering PDF reports as well.

    Do we have any mechanism or handler in which we can configure “Custom Font Factory” in Application.Config.

    Regards,

    Jyoti

  • Posted 31 August 2020, 4:44 am EST

    Hello,

    CustomFontFactory is used when using PDF export filters and drawing extensions in a Medium trust level environment or Azure web application, ActiveReports does not have access to the System Fonts folder due to security restrictions.

    So there is no need to use the CustomFontFactory on the machine as Font is already installed on the server machine.

    Also, as mentioned earlier, CustomFontFactory is only worked Pro license, not with the standard license.

    Could you please share what problem you are having while generating the PDF on the server-side so that I can help you accordingly

    Thanks,

    mohit

Need extra support?

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

Learn More

Forum Channels