Answer the question
In order to leave comments, you need to log in
ITextPDF Java. Why are Cyrillic fonts not displayed?
The document is created, but it is empty.
I found this on the Internet:
BaseFont bf = BaseFont.createFont("C:\Windows\Fonts\Arial.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
document.add(new Paragraph("Hello", new Font(bf, 10)));
But the error comes out:
Cannot resolve constructor 'Paragraph(java.lang.String, com.itextpdf.text.Font)'
How to correctly pass the Font to the paragraph?
Answer the question
In order to leave comments, you need to log in
Cannot resolve constructor 'Paragraph(java.lang.String, com.itextpdf.text.Font)'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question