Hello devs!
I am developer, too and I want to intergrate your library into my
project (comparing to other converter libraries give me best results)
But I found some kind of interesting bug in Docx to pdf converter, which
I am not able to fix without your help.
I used sample code with explicitly changed font encoding to windows-1250
(from page:
https://code.google.com/p/xdocreport/wiki/XWPFConverterPDFViaIText)
// 1) Load DOCX into XWPFDocument
InputStreamin=newFileInputStream(newFile("HelloWord.docx"));
XWPFDocumentdocument =newXWPFDocument(in);
// 2) Prepare Pdf options
PdfOptionsoptions =PdfOptions.create().fontEncoding("windows-1250");
// 3) Convert XWPFDocument to Pdf
OutputStreamout=newFileOutputStream(newFile("HelloWord.pdf"));
PdfConverter.getInstance().convert(document,out,options);
Document .docx containts just characters:
Aáäbcčdďeéfghiíjklĺľmnňoóôpqrsštťuúvwxyýzž
Interesting is that on my Windows8 jdk7 it works without any problem -
PDF is OK.
On my Ubuntu server oracle sun jdk7, it skip some characters and the
results seems like:
Aáäbcdeéfghiíjklmnoóôpqrsštuúvwxyýzž
Please, can U tell me, what I am doing wrong?
I spend a lot of time on this problem.
Thank you very much for any help from U.
With best regards,
Peter Margetiak
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]