I need to create PDF/A documents from .odt writer files.
https://wiki.openoffice.org/wiki/API/Tutorials/PDF_export documents the pdf export filter (as it was eons ago, I guess). I’ve got it working with other options, such as setting a password, e.g.
soffice --headless --convert-to 'pdf:writer_pdf_Export:{
“EncryptFile”:{“type”:“boolean”,“value”:“true”},
“DocumentOpenPassword”:{“type”:“string”,“value”:“mypassword”},
“Printing”:{“type”:“long”,“value”:“2”},
“EnableCopyingOfContent”:{“type”:“boolean”,“value”:“true”},
“EnableTextAccessForAccessibilityTools”:{“type”:“boolean”,“value”:“true”}
“SelectPdfVersion”:{“type”:“long”,“value”:“1”}
}
’ --outdir /tmp/outdir source.odt
This woks, except the result is not PDF/A despite the
“SelectPdfVersion”:{“type”:“long”,“value”:“1”}
This can be seen by running cpdf -info output.pdf, which shows no “Subformat”. This is unlike with files exported interactively from LibreOffice where the Subformat shows PDF/A-xx
What is the correct way to specify this?