I use a simple java code to generate doxc to PDF. The library is used to conversation is documents4j.
The same code is run in one machine, and not run in another. The other machine always get "com.documents4j.throwables.ConversionInputException: The input file seems to be corrupt" error.
VB script occurs the problem: if i delete the "dummy-password-to-avoid-lock" string, it works fine. Occurs error: Set wordDocument = wordApplication.Documents.Open(inputFile, False, True, False, "dummy-password-to-avoid-lock")
Generate PDF fine: Set wordDocument = wordApplication.Documents.Open(inputFile, False, True, False)
Is there any possibility to change VBSscript from java code?
Example the converter? IConverter converter = LocalConverter.builder().setVBScript().build(); ?