OS: Debian 11 / Debian 12 ( tested on both ).
Libreoffice installed via apt or via dpkg, same problem.
Cli:
libreoffice --headless --convert-to ‘pdf:draw_pdf_Export:{“SelectPdfVersion”:{“type”:“long”,“value”:“0”}}’ --outdir /path/to/something file.docx
tested with all “SelectPdfVersion” values
tested without any option ( --convert-to pdf --outdir … )
Working with 7.0.4.2 ( probably also with other version between 7.0.4 and 7.6 ).