No Euro sign visible with Syncfusion.Pdf.Grid.PdfGrid

Hi,

I have read here that you need a Syncfusion.Pdf.Graphics.PdfTrueTypeFont in order to show a Euro sign in a Syncfusion.Pdf.Grid.PdfGrid.

I tried the next code but the application crashes when the last line is executed:


var FontPath = Path.GetFullPath("wwwroot\\Arial.TTF"); 
FileStream fontStream = new FileStream(FontPath, FileMode.Open, FileAccess.Read);
PdfTrueTypeFont FontRegular = new PdfTrueTypeFont(fontStream, 12, PdfFontStyle.Regular);


Do you have a sample to add a TrueType font in order to show Euro signs?


Best regards,

Vince



 


2 Replies

IJ Irfana Jaffer Sadhik Syncfusion Team July 11, 2025 12:22 PM UTC

Hi Vince,


Thank you for reaching out.

We were unable to reproduce the issue on our end. To assist you further, we’ve attached a working sample demonstrating how to use a Syncfusion.Pdf.Graphics.PdfTrueTypeFont to display the Euro (€) symbol in a PdfGrid.

Please review the sample and let us know if the issue persists by sharing a modified version of the sample that reproduces the problem. 


Regards,

Irfana J. 


Attachment: TestCoreSample_1c901287.zip


VI Vince July 11, 2025 12:57 PM UTC

Thanks for the reply.

I see that your code does not differ from my code. So the cause of the crash had to be my TrueType file.

When using your 
ARIALUNI.TTF file, my app did not crash any more and the Euro signs are visible in the PdfGrid.

So, problem solved !


Loader.
Up arrow icon