I am trying to convert docx to pdf using xdocreport but I end up with classnot found exception for the class IRunBody. My package 'org.apache.poi.xwpf.usermodel' doesnt seem to have this interface. I have all the required jars for this. poi, poi-ooxml, poi-ooxml-schemas and yet I am unable to get this class. Can anyone let me know what am I missing here? Any other jars that I need to add? Below is the code that I am runnig
XWPFDocument xwpfDoc = new XWPFDocument(new FileInputStream(fileName));
PdfOptions options = PdfOptions.create().fontEncoding("windows-1250");
String randomFilename = UUID.randomUUID().toString();
String outputFIlePath = TEMPORARY_PDF_FILE_LOCATION + randomFilename + ".pdf";
OutputStream output = new FileOutputStream(outputFIlePath);
PdfConverter.getInstance().convert(xwpfDoc, output, options);
My ooxml jar was not latest. After updating ooxml jar, the issue was resolved. Thank you.