I’m running a python script on my Raspberry Pi to convert a docx file to a PDF file through headless LibreOffice using the code
output = subprocess.check_output(['soffice','--headless', '--convert-to', 'pdf' ,script_path +'Results.docx'])
The PDF generates fine but on every other platform I have access to (mac OS catalina and Android 10), the PDF will not open and an error message is generated.