2

I can't get headless soffice to tell me why conversion does not work and I cannot seem to figure out what flags I could pass to get some error output.

Version 1:

/usr/bin/soffice --headless --convert-to pdf test.key --outdir .

Version with all my silly attempts:

HOME=/tmp && /usr/bin/soffice --nologo --nofirststartwizard --headless --convert-to pdf test.key --outdir . > logfile.txt 2>&1

When I run the above I get a silent failure: I execute the command and then there's not console output.

Thoughts?

FYI:
- I'm running this on a Debian server.
- This works perfectly well for PowerPoint conversion.

haberdasher
  • 619
  • 6
  • 17

2 Answers2

2

Make sure that not only are you not running an instance of libreoffice on your pc but also that you have not got the libreoffice Quickstarter module running either, both will result in a silent failure, when trying to do this sort of thing.

Rolf of Saxony
  • 21,661
  • 5
  • 39
  • 60
  • FYI - I'm running this on an Debian server. Also, it works perfectly well for PowerPoint conversion. – haberdasher Aug 03 '17 at 18:25
  • @haberdasher After some digging, it appears that there is an issue opening a keynote file with libreoffice, which is what I am assuming the test.key file is. Export it as a powerpoint (.ppt) file and then use libreoffice to either open or convert it. – Rolf of Saxony Aug 04 '17 at 07:07
  • Is there a way to programmatically export from key to ppt? – haberdasher Aug 05 '17 at 21:04
  • I don't believe that keynote as an API. Although I read somewhere that it can be controlled with apple script, so you might investigate that avenue. – Rolf of Saxony Aug 06 '17 at 06:51
1

Closing other instances of LibreOffice may solve it. It seems to be a bug in LibreOffice.org versions <5.3. You can find an explanation and solutions in this answer.

arauzo
  • 185
  • 1
  • 7