iText - PdfPTable doesn't show Cyrillic(Russian) symbols

后端 未结 1 1535
日久生厌
日久生厌 2021-01-16 06:37

I\'m sorry for my English. I\'m trying to create table with PdfPTable(iText library). Table show me empty column![enter image description here][1]

public cla         


        
相关标签:
1条回答
  • 2021-01-16 07:01

    When you use setFont(), you change the font of the Phrase for all the content that is added after the font was set. The content "Номер" was already present in the Phrase before you changed it. Hence "Номер" was represented in the default font Helvetica. As Helvetica doesn't know how to represent Cyrillic glyphs, the text wasn't rendered.

    0 讨论(0)
提交回复
热议问题