Answer the question
In order to leave comments, you need to log in
How to display Cyrillic fonts in a pdf report using the dynamicreports library?
Hello, I started writing a project that should contain automatic generation of a pdf report, but I ran into a problem with displaying Russian characters in a pdf document. I use the DynamicReports library
public void build() throws FileNotFoundException, DRException {
report()
.title(cmp.text("TITLE"))
.pageHeader(cmp.text("история"))
.toPdf(new FileOutputStream("text.pdf"));
}
Answer the question
In order to leave comments, you need to log in
Maybe the problem is in the encoding and font? Try reconfiguring the plugin or changing the font.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question