Version 7.6.4 cli converter from docx to pdf change top margin

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 ).

You’re trying to convert a DOCX but use the pdf:draw_pdf_Export filter. Is there a Writer export filter which would fit better the concepts of a text document rather than a graphical file?

Please see this comment in a similar question, Format of document changed after update to LibreOffice 7.6.4.1 - #6 by RobertG

i’ve tried different options and no option at all.

draw_pdf_Export is the one used in the documentation here
https://help.libreoffice.org/latest/en-US/text/shared/guide/pdf_params.html

:man_facepalming: But there, it was used with an ODG file!
Anyway, the filter name will be ignored here, because the Draw filter indeed can’t handle Writer’s document; so changing it to Writer explicitly won’t help. (I wonder if we should produce an error in this case?)