如何使用POI设置波兰语字符

时间:2014-12-19 13:14:41

标签: apache-poi

我必须将Document从docx转换为pdf。转换正确,但我看不到波兰人物。有人有这个问题吗?

我的代码:

String inputChangeFile = "wniosekzaciagniecie.docx";
InputStream inputstream = new FileInputStream(inputFilename);
length = inputChangeFile.length();
XWPFDocument document = new XWPFDocument(inputstream);            
PdfOptions options =PdfOptions.create().fontEncoding("windows-1250");
OutputStream out = new FileOutputStream(new File("kakaowyszal.pdf"));
PdfConverter.getInstance().convert(document, out, options);

0 个答案:

没有答案
相关问题