I have a large number of documents to be converted both in excel and doc format and they are being created not by me. When I am trying to run this python code on an excel document(basically the same as running in bash):
import subprocess
subprocess.run(['libreoffice', '--headless', '--convert-to', 'pdf',
'test_docs/doc.xls', '--outdir', 'tmp_docs'])
My document splits by width on 2 pages with the second page as shown below:
(https://i.sstatic.net/LRaPbvwd.png)
Why would this happen and how to fix this?