There is a specific DOCX file that throws an exception in Words for Java when I open it and save as HTML.
The file has the following attributes:
- Header, footer and body
- “Different first page header” is enabled
- Shapes in header and footer
Code:
LoadOptions loadOptions = new LoadOptions();
loadOptions.setLoadFormat(LoadFormat.DOCX);
Document doc = new Document(new File(“breaks.docx”), loadOptions);
HtmlSaveOptions saveOptions = new HtmlSaveOptions(SaveFormat.HTML);
doc.save(“output.html”, saveOptions);
Any insights?
Zip with file and stack trace attached.
issue.zip (33.2 KB)