简体   繁体   中英

can't word with built-in marcos with doucments4j

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!

document4j不执行宏,因为它们可以是交互式的,而document4j在无头模式下运行,在这种模式下无法进行此类交互。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM