C
C
coderisimo2019-06-15 18:37:06
ubuntu
coderisimo, 2019-06-15 18:37:06

Libreoffice Headless. Why doesn't XLS to pdf conversion work, but DOCX to pdf does?

I generate PDF on the server, I collect from other elements (PDF and pictures). Everything works, everyone is happy. The customer wanted to use the same ms office files. And then the inexplicable begins :) .
Installed libreoffice headless on the server. It's perfect for this task. I'm testing in the console.
The console command looks like this:

libreoffice  --headless --convert-to pdf 11111.docx

and everything works. When I try to do the same with xls,
libreoffice --headless --convert-to pdf kkk.xls
I get Error: source file could not be loaded
If the option for docx did not work, it would be clear that something is globally wrong, but in this case ...
Version 6.2.4.2
I would be grateful for any ideas .
Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
coderisimo, 2019-06-15
@coderisimo

The issue was resolved by reinstalling.

K
kalapanga, 2019-06-15
@kalapanga

Maybe like this: libreoffice --headless --convert-to pdf:calc_pdf_Export kkk.xls

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question