Conversion of docx to pdf

How to initialize libreoffice in listener mode and use it for docx to pdf conversion using headless command for multiple user instances?

I meant is it possible to run each user instance in listener mode and run the -convert to pdf command in headless mode for pdf conversion for each user instance?

Any first LibreOffice instance starts as a “listener” for all subsequent instances using the same user profile.
Please spend time reading that topic. It basically discusses it all very thoroughly.