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
LoadOptions loadOptions = new LoadOptions();
Document doc = new Document(new File(“breaks.docx”), loadOptions);
HtmlSaveOptions saveOptions = new HtmlSaveOptions(SaveFormat.HTML);
Zip with file and stack trace attached.
issue.zip (33.2 KB)