Saving C1PrintDocument to PDF: "Arial bold" problem on IOS10.2

Originally Posted 3 January 2017, 6:53 am EST

  • Originally Posted 3 January 2017, 6:53 am EST

    Hi C1,

    we got a bug report from a customer that a C1PrintDocument exported to PDF was not displayed properly on IOS 10.2. The font was set to "Arial", as IOS should support this. But bold fonts did not work.

    Attached is a small code sample. It creates a file "bin\Debug\test.pdf", which contains a RenderTable with "Arial", "Arial bold", "Verdana" and "Verdana bold".
    When viewing this on a IOS 10.2 device (phone, tablet), the arial bold part will not be displayed. With IOS 10.1 and 9.5 it worked.

    The reason seems to be that "Arial" is named "ArialMT" in IOS: https://ajnaware.wordpress.com/2008/10/24/list-of-fonts-available-on-the-iphone/
    When you use Word 2016 to save a document to PDF, you will notice that it also uses "ArialMT" instead of "Arial".

    "ArialMT" seems to be one of the fonts that should be available in all PDF viewers.

    Do you have any ideas about this? I tried to find answers in the web, but with no success.

    I actually don't know what question I should ask here ;-). Hope that you have some PDF guru in your company that can clarify on this. Is it a bug in IOS? Or is it a bad idea to use "Arial" font? Or are there some concepts to create a PDF file with "ArialMT"?

    Best regards

    Wolfgang
    2017/01/PrintDocumentRenderTablePDF.zip
  • Reply

    Attached is the sample PDF.
    2017/01/test.pdf
  • Reply

    Hi Wolfgang,

    I could also replicate the issue at my end with iOS 10.2 and further escalating this to the concerned team. I will update you along with the progress.
    In the meantime, you can use Adobe Acrobat Reader instead of iOS 10.2's default one.

    Thanks,
    Sonu
  • Reply

    Hi Wolfgang,

    I am seeing similar issues with our PDFs. If you are using the PDFExporter try setting the UseCompression=false, even though I don't think this is the optimal solution it seems to have fixed our problem until C1 or IOS has a better solution.

    Thanks
    Frank
  • Reply

    Hi Frank,

    thanks for the workaround. I can confirm that it works with this workaround. I would have never found this one ;-)

    Best regards

    Wolfgang
  • Marked as Answer

    Reply

    Hi,

    According to this:
    https://discussions.apple.com/thread/7788417?start=0&tstart=0

    the problem is fixed in iOS 10.2.1. Please try this update and the problem should no longer occur.

    Thanks,
    Pragati
  • Reply

    Thanks for the update! As we worked around it by changing the font of the pdf, there is no need to check this myself ;-)

    Best regards

    Wolfgang
Need extra support?

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

Learn More

Forum Channels