Hi,
I’m trying to run the convert-to command to convert a PDF document into a PDF/A Version of itself, but I’m struggling to activate the OutputFilterParams.
From the documentation here: PDF CLI Parameters
File Conversion Filters Tables
I tried the below with no sucess (I’m on windows btw):
PS C:\Program Files\LibreOffice\program> .\soffice.exe --headless --convert-to 'pdf:writer_pdf_Export:SelectPdfVersion="3"' --outdir "C:\Users\Chris.Prince\Downloads\Test" "C:\Users\Chris.Prince\Downloads\MyPDF.pdf"
The file did convert and created a new PDF, but none. Tried a couple of variations of the above, as well as a couple other parameters and none seems to work :
PS C:\Program Files\LibreOffice\program> .\soffice.exe --headless --convert-to 'pdf:writer_pdf_Export:SelectPdfVersion:"3"' --outdir "C:\Users\Chris.Prince\Downloads\Test" "C:\Users\Chris.Prince\Downloads\MyPDF.pdf"
PS C:\Program Files\LibreOffice\program> .\soffice.exe --headless --convert-to 'pdf:writer_pdf_Export:SelectPdfVersion:3' --outdir "C:\Users\Chris.Prince\Downloads\Test" "C:\Users\Chris.Prince\Downloads\MyPDF.pdf"
Even:
PS C:\Program Files\LibreOffice\program> .\soffice.exe --convert-to 'pdf:draw_pdf_Export:{"SelectPdfVersion":{"type":"long","value":"3"}' --outdir "C:\Users\Chris.Prince\Downloads\Test" "C:\Users\Chris.Prince\Downloads\PAX-for-PUT.pdf"
I was hoping to be able to apply multiple filers - as the docs also suggest this is possible… But I figured I’d try to get one done first!
Thanks for your help.
Edit: Found these topics which explained the issue.
How to set the Selection parameter to convert to pdf using the command line - English - Ask LibreOffice
Passing in JSON parameters into Writer for the --convert-to option - English - Ask LibreOffice