Libreoffice, conversion to pdf via cli gets blank pages but via gui works fine

Hi all,

I am trying to convert a docx file to pdf file on Libreoffice, which works nice on GUI, but with CLI command
/usr/bin/./soffice --headless --invisible --convert-to pdf 1.docx --outdir ./

I get a blank page with only header and footer, additionally I found that if I add space of one line between header and the main table, the CLI conversion succeed, can anyone guide me through this problem?

1.docx (30.9 KB)

CLI conversion

GUI conversion

I remember some fixes ~recently with regards of incomplete layout when doing a headless conversion. So - please try a newer version first. If that is a bug fixed in a later version, you are unlikely to succeed with an older version without using non-headless procedure (well, possibly using some heavy scripting perhaps).

Just checked with 7.3.4 using the above command and the file provided by the OP and confirm the issue.

I see an error message, but can’t determine if it is relevant to the issue:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See for further detail