Lucee Throwing error on OpenOffice and JODConveter

183 Views Asked by At

I had the following Lucee + JODConveter ehich i am trying now,

I am constantly getting an error

Lucee 5.3.4.80 Error (com.artofsolving.jodconverter.openoffice.connection.OpenOfficeException)
Message     conversion failed: could not save output document; OOo errorCode: 2074

I installed Latest OpenOffice 4 version and even lucee on my local but i am still wondering what is going on it, does it have any permissions issue, any config changes i need to do, any clue?

1

There are 1 best solutions below

0
sbraconnier On

Unfortunately, I'm not familiar enough to help you with your Lucee script. But here are the libraries you need to use jodonverter-4.3.0

Now, you may want to read the wiki pages of the jodconverter project to help you translate your script using the new jodconverter version.

There are 2 ways to use the jodconverter library with a local OpenOffice (or LibreOffice) installation, depending on if you are managing the office instances yourself, or if you let jodconverter manage them.

If you use jodconverter on the server side of an application, the best approach is to let jodconverter manage the office process, that would be started on application start, and closed on application shutdown.

You may take a look at this webapp sample that does just what I explained.

Good luck!

Note that OpenOffice is known to have some difficulties working with docx file. See here. Maybe you could just try with LibreOffice ??