A
A
aleksey-lymarev2015-01-03 18:52:41
Java
aleksey-lymarev, 2015-01-03 18:52:41

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"));
  }

as a result, only the title is displayed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egor Stakhovsky, 2015-01-03
@aleksey-lymarev

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 question

Ask a Question

731 491 924 answers to any question