In Ubuntu 19.04, soffice is already in the path, so I went to the directory containing my pdfs and entered:
soffice --headless --convert-to pdf: foo 20190630_deposit.xlsx
It ran without error message. I expected to find “foo.pdf” in that directory, but nothing. I tried:
soffice --headless --convert-to pdf: “~/temp/foo” 20190630_deposit.xlsx
and looked for foo.pdf in the temp subdirectory of my home directory. Nothing.
What am I doing wrong?