Category / Section
How to preserve EURO symbol in PDF.
1 min read
How to preserve EURO symbol in PDF:
EURO symbol can be rendered by using the suitable TrueType font. Below is the code snippet that shows how to add an Euro symbol to the PDF document.
C#
//Creates new pdf document PdfDocument doc = new PdfDocument(); //Adds new page PdfPage page = doc.Pages.Add(); //Draw the Euro symbol using the true type font PdfTextElement text = new PdfTextElement("€", new PdfTrueTypeFont(new Font("Arial", 12, FontStyle.Bold))); text.Draw(page.Graphics); //Save the document and dispose it. doc.Save("Output.pdf"); doc.Close(true);
Sample Link:
https://www.syncfusion.com/downloads/support/directtrac/146113/ze/EuroSymbol-2085429548