I’m trying to convert office documents (.docx, .xlsx, etc.) to PDF via command line, using LibreOffice 24.2.7.2 installed from ubuntu’s official repo.
For example I can do it simply by
libreoffice --convert-to pdf input.docx
What I’m confused about is the “InitialView” setting.
According to the official document, the default value of “InitialView” is “0”. However, it looks like the actual default value is “1”. So if I want to hide the side pane I have to set the value (and the PDF filter) explicitly like
libreoffice --convert-to 'pdf:writer_pdf_Export:{"InitialView":{"type":"long","value":"0"}}' input.docx
, which is a bit complicated.
Is this just a bug, or am I missing something?