Hi! I run this command to convert doc and docx files to PDF:
/usr/bin/soffice --headless --convert-to pdf:writer_pdf_Export /home/facturaspfis/prueba.docx --outdir /home/facturaspfis
This works fine on my bash console (after manually adding Liberation fonts). But when the same command is run from the app, like this:
/usr/bin/soffice --headless --convert-to pdf:writer_pdf_Export /home/facturaspfis/facturacionpfis/facturacionpfis/static/uploads/fcc17166e1b302c38f41f805fb029f76617cf14a.docx --outdir /home/facturaspfis/facturacionpfis/facturacionpfis/static/uploads
I get the following error:
2023-06-09 11:45:00 LibreOffice 6.4.7.2 40(Build:2)#012#012Error in option: --convert-to pdf:writer_pdf_Export#012#012Usage: soffice [argument...]#012 argument - switches, switch parameters and document URIs (filenames). #012#012Using without special arguments: #012Opens the start center, if it is used without any arguments. #012 {file} Tries to open the file (files) in the components #012 suitable for them. #012 {file} {macro:///Library.Module.MacroName} #012 Opens the file and runs specified macros from #012 the file. #012#012Getting help and information: #012 --help | -h | -? Shows this help and quits. #012 --helpwriter Op
(Sorry, it appears to be broken so I just copied and pasted it)
Any ideas what could I be missing?
Thanks in advance!