Search code examples
c#pdfsharp

Pdf created from pdfsharp showing weird text in mobile


I created PDFs using PdfSharp. Its working as expected when opened in PC/Laptop, but when I try to open it in Mobile it is showing weird text on all pages. I googled for the same but, had no luck.

Please refer below screenshot

I used Verdena font to write text .

XFont font = new XFont("Verdana", 7, XFontStyle.Bold);

Solution

  • Setting of pdf application preferences::IIRC, the setting is called Use local fonts. You can usually find it in the Page display section of the preferences settings, but over the different releases Adobe kept adding, removing or re-locating different settings Here are standard pdffonts` https://en.wikipedia.org/wiki/Portable_Document_Format#Standard_Type_1_Fonts_.28Standard_14_Fonts.29