Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversion error on docm files #656

Open
99brgs opened this issue Apr 8, 2024 · 0 comments
Open

Conversion error on docm files #656

99brgs opened this issue Apr 8, 2024 · 0 comments

Comments

@99brgs
Copy link

99brgs commented Apr 8, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant