Mutli page pdf gets converted to single page docx file

I am trying to convert a PDF file to docx using command line using:

soffice --infilter=“writer_pdf_import” --convert-to “docx:MS Word 2007 XML” *.pdf

The Input PDF contains multiple pages.
The Output Docx file when opened has the contents of the pages over written onto one another into a single page. Hence, the number of pages in the Docx file is only 1.

Section of the document is shown in the Image below.

I expect each page on PDF written to corrosponding page in Docx.

Additional Info:
Version: LibreOffice 7.5.4.2 36ccfdc35048b057fd9854c757a8b67ec53977b6
OS: Windows

image

I am new to Libre Office and i dont know if i have to tune the arguments of the command for the expected output. I get this command from stackoverflow.

Putting multiple pages on top of each other would be a bug, but as I don’t expect a workable document from pdf2writer I would not care…

This is due to a bug in newer versions: 156303 – Saving a PDF Import to doc/docx/rtf moves all text boxes to the first page

Temporary workaround: use LibreOffice 7.4.3.2 - the last correctly working version.