Hi there
I am trying to make use of the --convert-to option to convert a doc file to a pdf from the command line on a red hat system.
eg. /usr/lib/libreoffice/program/soffice.bin --headless --convert-to pdf --outdir /test/path /test/path/test.doc
The above command runs and works when I run it as root, but not when I run it as a non-root user.
I noticed there is no -v / verbose / log file option for headless, I am trying to trouble shoot this on a system that does not have X so it would be handy to see some kind of output when the command fails - right now it just fails silently which is not helpful at all.
So there are 2 questions really…
- How can I log / see the output of --convert-to on the command line
- Can I get this command to execute under a non-root user?
The only error I can see is 19712 (returned in the script calling this command) - I’m not sure if that means anything to anyone?