C1PrintDocument ExportToPDF cannot generate Unicode letters

Posted by: jfang on 6 October 2017, 4:42 am EST

    • Post Options:
    • Link

    Posted 6 October 2017, 4:42 am EST

    I get a document which contains Unicode circle letters, e.g. Ⓐ, Ⓑ etc. it showing find in PrintPreview, however when I try to get PDF file with C1PrintDocument.ExportPDF, all Unicode letters is changed to boxes. I tried to set EmbedTrueTypeFonts to True and it’s still no luck. Does anyone has solution for this issue?

  • Posted 8 October 2017, 6:56 pm EST

    Hi,

    We can observe the issue but while previewing the C1PrintDocument (see “display.png”). The exported pdf comes out fine. We have reported this issue to the concerned team.

    We have used the latest build to test the scenario with the attached sample. Please check it with the same and share your observations with us:

    http://prerelease.componentone.com/dotnet40/c1winforms/2017-t2/C1WinForms.4_4.0.20172.271.zip

    Also, please share the following details:

    1. The build version you are using at your end.
    2. The system environment details.

    Regards,

    Esha

    https://www.dropbox.com/s/yhikv2etfisf4gc/prj_C1PrintDocument.zip?dl=0

    https://www.dropbox.com/s/5zbu8v2scn4vw1d/display.PNG?dl=0

  • Posted 16 October 2017, 8:26 pm EST

    Hi,

    The glyphs for these symbols are absent in some specified fonts, so font substitution needs to take place. Due to performance reasons, it is off by default in C1PrintDocument. To turn it on, one of the following values should be set on the document prior to generation:

    doc.FontHandling = FontHandling.BuildActualDocumentFonts
    
    ```or
    

    doc.FontHandling = FontHandling.EmbedActualFonts

    
    This will render all text correctly even during the preview.
    
    Regards,
    Esha
  • Posted 17 October 2017, 5:23 am EST

    Thanks esha.dhir for the reply, however I cannot use FontHandling property.

    My C1PrintDocument class is under namespace C1.C1PrintDocument.C1PrintDocument;

    and there is no FontHandling property for the class.

    Regards!

    Jack

  • Posted 17 October 2017, 7:32 pm EST

    Hi,

    We are using the latest version of ComponentOne Studio at our end in which the C1PrintDocument lies in the C1.Win.C1Preview namespace and contains the FontHandling property.

    Please let us know the control version you are using at your end. Also, refer the below mentioned blog post which might help you understand about major changes in C1Report since 2008 V2.

    https://www.grapecity.com/en/blogs/major-architectural-changes-c1report

    Regards,

    Esha

Need extra support?

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

Learn More

Forum Channels