java - How do we get to know whether a macro is present or not in a word document? -
using java how find whether macro present or not in microsoft word document. tried using switch command winword.exe there no switch can find it.
use library can parse word documents. apache poi choice long documents aren't big.
the library allows load document. afterwards, can examine various parts.
bug 52949 has attachment sample code how extract macro code. should started.
you you're using new xml format .docx
/ ooxml, word file in fact zip archive can unpack using standard java library. inside, find lot of xml files. macros should there well.
Comments
Post a Comment