cli convert-to vs "Export to PDF" discrepancy

I have a document which I want to convert to PDF, programmatically.

Running the command
soffice --convert-to pdf document.docx yields a pdf which has blank sections.

Opening the same docx file in Writer and using the menu to Export to PDF yields a PDF will all content rendered.

Is there anyway replicate the Export to PDF functionality or does the soffice cli command allow additional arguments to be passed which would allow the options available in the GUI?

I hope you will be relieved if you find out that we are experiencing the same difficulties here. Yes, there is a problem. Perhaps you will take the trouble to inform the developers about it? Because we are users just like you, we will not make convert-to better.