title: LibreOffice convert-to pdf produces file could not be loaded error even if file has 777 permissions
body: <p>I migrated a site for a client recently and have been having trouble with LibreOffice. One feature of the site takes a docx, makes changes to it, then copies it and converts it into a pdf for user download. For some reason I can't get the edited file that needs to be changed to a pdf to be properly accessed by libreoffice.</p>
  <p>For example if in terminal I attempt to run:</p>
  <pre><code>libreoffice --headless --convert-to pdf edited_source.docx edited_pdf.pdf --outdir /storage 
  </code></pre>
  <p>I get the error:</p>
  <pre><code>Error: source file could not be loaded
  </code></pre>
  <p>I am definitely using the correct path, and I attempted to even set <code>chmod 777 edited_source.docx</code> for testing purposes (would of course not leave it 777) but even so, it cannot be loaded.</p>
  <p>Any ideas what I'm missing? Could I be missing a package?</p>
  <p>EDIT: I have also checked the docx files that are being converted to make sure they are not corrupted, they seem to be opening fine in word etc, and I have also made sure that libreoffice-writer is installed</p>
  <p>EDIT: I am using Ubuntu 20.04.01 and libreoffice 6.4.6.2</p>