How to create a PDF document from languages of Unicode char set regarding using third party Fonts

后端 未结 2 1530
走了就别回头了
走了就别回头了 2021-02-11 09:38

I\'m using PDFBox and iText to create a simple (just paragraphs) pdf document from various languages. Something like :

pdfBox:

private s         


        
2条回答
  •  没有蜡笔的小新
    2021-02-11 09:51

    You may find this answer helpful - it confirms that you can't do what you need with one of the standard type 1 fonts, as they're Latin1 only

    In theory, you just need to embed a suitable font into the document, which handles all your codepoints, and use that. However, there's at least one open bug with writing unicode strings, so there's a chance it might not work just yet... Try the latest pdfbox from svn trunk too though to see if it helps!

提交回复
热议问题