can't word with built-in marcos with doucments4j

99 Views Asked by At

I'm currently using documents4j to convert doc/docx files to pdf files. It works great! Thanks for the team!

But there is one problems: when I tried to convert some word files with built-in Macro, the convert will just failed.

I tried to do some debugging with the generated VB script, it seems after open the file, the call to ExportAsFixedFormat fails. Even the call to wordDocument.Close fails either.

Does anyone know how to deal with this problem? Thanks in advance!

1

There are 1 best solutions below

2
On

documents4j does not execute macros as those can be interactive whereas documents4j runs in a headless mode where such interactions are not possible.