PREMATURE END OF FILE - XWPFDocument to PDFConverter
问题 Instead of appending the content of a document to CTBody Class, I am transfering all the data from a word document to an empty document using XWPFDocument class but I am getting an error as below. the error is pointed on XWPFDocument doc when I convert it to pdf fr.opensagres.poi.xwpf.converter.core.XWPFConverterException: org.apache.xmlbeans.XmlException: error: Premature end of file. FileInputStream fis = new FileInputStream("1.docx"); FileInputStream fis1 = new FileInputStream("2.docx");