how to add country currency symbol using pdfbox in java
I am trying to add country currency symbol in pdf but got below error, please help me to out of this thanks in advance
ERROR:
java.lang.IllegalArgumentException: U+20B9 ('.notdef') is not available in this font Helvetica-Bold encoding: WinAnsiEncoding
CODE:
contentStream.beginText();
contentStream.setLeading(14.5f);
contentStream.newLine();
contentStream.setFont(PDType1Font.HELVETICA_BOLD, fontSize);
contentStream.showText("TotalAmount: ₹" + "0.00");
contentStream.newLine();
Code use with arial.ttf
contentStream.beginText();
contentStream.setLeading(14.5f);
contentStream.newLine();
contentStream.setFont(PDType0Font.load(document, new File("C:/00Project/Sports_v2_workspace/arial.ttf")), 10);
// contentStream.setFont(PDType1Font.HELVETICA_BOLD, fontSize);
contentStream.showText("Total Amount: ₹" + "0.00");
Error:
java.lang.IllegalArgumentException: No glyph for U+20B9 (₹) in font ArialMT
I downloaded arial.tff in GitHub , Coukd you please help me for this case