debian soffice error

I’m having an error using soffice on the command line on Debian OS.

I have download and installed the libraries from this web, added this path /opt/libreoffice6.1/program/ to PATH variable and now the PATH variable looks like that:

'/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/opt/libreoffice6.1/program/'

When I tried to run this command:

soffice --headless --convert-to pdf test.docx

I get this message:

/opt/libreoffice6.1/program/oosplash: error while loading shared libraries: libXinerama.so.1: cannot open shared object file: No such file or directory

Please help me.
Tnx.

You might want to look here.

I run Debian. I tested the following and it works for me:

/opt/libreoffice6.0/program/soffice --headless --convert-to pdf "Wood cutting bond.docx"

Have these packages below loaded: