XDocReport means XML Document reporting. It's Java API to merge XML document created with MS Office (docx) or OpenOffice (odt), LibreOffice (odt) with a Java model to generate report and convert it if you need to another format (PDF, XHTML...).
Using version 2.0.4 of the library together with Apache POI 5.2.5 I am getting an error converting a particular docm file. This is the error:
Exception in thread "main" fr.opensagres.poi.xwpf.converter.core.XWPFConverterException: java.lang.ArrayIndexOutOfBoundsException: Index 8 out of bounds for length 8
at fr.opensagres.poi.xwpf.converter.pdf.PdfConverter.doConvert(PdfConverter.java:71)
at fr.opensagres.poi.xwpf.converter.pdf.PdfConverter.doConvert(PdfConverter.java:39)
at fr.opensagres.poi.xwpf.converter.core.AbstractXWPFConverter.convert(AbstractXWPFConverter.java:42)
at ConvertWordToPDF.convertWordToPDF(ConvertWordToPDF.java)
The error is raised on line 57, mapper.start()
The same code works in other docm files so I suspect that something is wrong with the file. However, I can open it without any issue in LibreOffice desktop application.
Unfortunately, I cannot share the document as it contains private information. Is there anything I can do to solve it?
Using version 2.0.4 of the library together with Apache POI 5.2.5 I am getting an error converting a particular docm file. This is the error:
Exception in thread "main" fr.opensagres.poi.xwpf.converter.core.XWPFConverterException: java.lang.ArrayIndexOutOfBoundsException: Index 8 out of bounds for length 8 at fr.opensagres.poi.xwpf.converter.pdf.PdfConverter.doConvert(PdfConverter.java:71) at fr.opensagres.poi.xwpf.converter.pdf.PdfConverter.doConvert(PdfConverter.java:39) at fr.opensagres.poi.xwpf.converter.core.AbstractXWPFConverter.convert(AbstractXWPFConverter.java:42) at ConvertWordToPDF.convertWordToPDF(ConvertWordToPDF.java)
The error is raised on line 57, mapper.start()
The same code works in other docm files so I suspect that something is wrong with the file. However, I can open it without any issue in LibreOffice desktop application.
Unfortunately, I cannot share the document as it contains private information. Is there anything I can do to solve it?