I need to open a .doc/.dot/.docx/.dotx (I\'m not picky, I just want it to work) document,
parse it for placeholders (or something similar),
put my own data,
an
I ended up relying on Apache Poi 3.12 and processing paragraphs (separately extracting paragraphs also from tables, headers/footers, and footnotes, as such paragraphs aren't returned by XWPFDocument.getParagraphs() ).
The processing code (~100 lines) and unit tests are here on github.