Version: 7.4.5.1
When I try to run the following command to execute a headless conversion of a document to PDF, such as the below:
"C:\Program Files\LibreOffice\program\soffice.exe" --convert-to pdf:draw_pdf_Export:{"SelectPdfVersion":{"type":"long","value":"14"}} --outdir "C:\Users\<user>\Documents" "C:\Users\<user>\Documents\test-document.docx"
…it creates the PDF successfully but is created as a PDF version 1.6, not a 1.4 as I expected it might (following the guidence from here: What is Miklos hacking – Improved PDF export options in the command-line and in Online).
The only difference between my invocation and the example I found…
soffice --convert-to 'pdf:draw_pdf_Export:{"SelectPdfVersion":{"type":"long","value":"15"}}' test.odg
…is that there is a wrapping of the JSON parameters with ‘’. I did try this but it didn’t work and that the PDF created was a .'pdf file. Anyone able to see what I am doing wrong here?