http://markmail.org/thread/r2bbln57hjng7bxu
Hello , Today I made a test of what languages can I write in a PDF file using PDFBox. I used "TIMES_ROMAN" font with WinAnsiEncoding. The following languages were written in the PDF perfectly : Danish - Dutch - English - French - German - Italian - Norwegian - Portuguese - Spanish - Swedish And the following languages failed, the text appeared in the PDF very strange : Bulgarian - Polish - Russian - Turkish - Arabic - Japanese - Chinese. My question is : Why for example the Bulgarian text appears good in Microsoft word when I write it with the same font "Times New Roman" while when writing it in the PDF with the same font it appears strange ? Andreas said that the trick is to use the correct font ... And it seems "TIMES_ROMAN" should write Bulgarian fine !! I've also tried to use a font specialized for writing Bulgarian, which is "Bulgarian Courier" : PDTrueTypeFont font = PDTrueTypeFont.loadTTF( pdfFile, "fonts/2.ttf" ); But it didn't write it fine too !! Is the problem related to the Encoding I'm using : "WinAnsiEncoding" ? Thanks.