I found another method.
Tika 1.2 fails on not finding a style.
I created a blank docx file with a footer and header. In the Java code I
open the blank document
and copy the styles to the other document.
XWPFDocument out =
new XWPFDocument(new FileInputStream(new
File(location+knownBlankDoc)));
XWPFStyles styles = existingDoc.createStyles();
styles.setStyles(out.getStyle());
Not elegant but it meets the deadline.
--
View this message in context:
http://apache-poi.1045710.n5.nabble.com/Creating-docx-footer-prevents-search-indexing-tp5714259p5714294.html
Sent from the POI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]