Я использую Thymeleaf с загрузкой Spring, я генерирую PDF-файл из шаблона Thymeleaf с использованием ITextRenderer, у меня есть некоторое значение Unicode (HEX) для отображения символов валюты, но оно не отображает символы Unicode
У меня естьвзят символ валюты Юникод с этого URL Ссылка на валюту Юникод
Ниже приведен мой код Java для создания PDF из шаблона Thymeleaf
String html = templateEngine.process("templates/Quote", context);
FileOutputStream os = null;
File parentDirectory=null;
try {
OutputStream outputStream = new FileOutputStream(quoteNumber+".pdf");
BufferedOutputStream bs= new BufferedOutputStream(outputStream);
ITextRenderer renderer = new ITextRenderer();
renderer.setDocumentFromString(html);
renderer.layout();
renderer.createPDF(bs,true);
outputStream.close();
Assert.notNull("greeting", "The templateName can not be null");
final Context ctx = new Context();
String processedHtml = templateEngine.process("greeting", ctx);
String fileName = UUID.randomUUID().toString();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
//e.printStackTrace();
log.error("File not found >>> ",e);
} catch (IOException e) {
// TODO Auto-generated catch block
//e.printStackTrace();
log.error("IO Exception >>> ",e);
}
finally {
if (os != null) {
try {
os.close();
} catch (IOException e) { /*ignore*/ }
}
}
Пожалуйста, помогите мне отобразить символы валютыв сгенерированном PDF