Closed NTC4818 closed 3 months ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
I've just spun this container up, flung a .docx into it and then saved it as a .pdf with no issue.
I'd recommend you recreate this container as per the guidelines here: https://github.com/linuxserver/docker-libreoffice?tab=readme-ov-file#usage
And try again.
Is there an existing issue for this?
Current Behavior
When trying to convert document to pdf continues to fail to load.
Expected Behavior
Should convert pdf back to same directory
Steps To Reproduce
FROM lscr.io/linuxserver/libreoffice:latest
import subprocess output_dir = "./" word_file_path = "/workspaces/DSEP_2008/18764268.docx" conv_cmd = f"soffice --headless --norestore --invisible --nodefault --nofirststartwizard --nolockcheck --nologo --convert-to pdf:writer_pdf_Export --outdir {output_dir} {word_file_path}" response = subprocess.run(conv_cmd.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE) print(response) print("Testing")
python 3.11
Environment
CPU architecture
x86-64
Docker creation
Container logs