soffice --headless "-env:UserInstallation=file:///tmp/LibreOffice_Conversion_${USER}" --convert-to pdf:writer_pdf_Export --outdir \tmp \tmp\fileName.extension
I am using the following command to help move a variety of PDF styles and/or formats into a format that US government agencies will accept. The only current roadblock is the need for A4 paper sizes. I was thinking this might work “–printer PaperSize=8.5x11” or this “–printer PaperSize=A4”, but it does not seem to. I can see command parameters here: soffice - Linux Man Pages (1) but it does not seem to include “PaperSize”.
Is there a better, more official site for obtaining all the command parameters?
Is there a means of setting the PDF page size using soffice at all?
Is there a means of setting the PDF page size via another tool?
Is there a means of setting the PDF page size using Java?
System Info:
OS: “Alpine Linux: v3.4 :: Arch: x86_64”
Libre: 5.1.4.2-r0