Inconsistent DOCX to PDF Conversion in LibreOffice: Extra Empty Space in CLI Conversion

When a DOCX file is converted to a PDF using the LibreOffice Writer GUI, the conversion occurs as expected without any issues.

However, when the same DOCX file is converted to a PDF using the LibreOffice command-line interface (CLI), an unexpected issue arises.

The first page of the resulting PDF file has additional empty space.

v2.docx (70.4 KB)

Another interesting PDF export inconsistency: Converting a particular .pptx to pdf multiple times produces different .pdf files