Convert PDF to Word Document at command Line on CentOS

No doubt Libreoffice is a great product and I’m using it to convert my word files to PDF files very easily. Following is the simple syntax

$soffice --headless --convert-to pdf:writer_pdf_Export word.docx

But when I tried to convert any PDF file in word format, its not working fine. So kindly give me a command which I can use to convert PDF file into word file using LibreOffice.


[edit: added centos tag]

I think you can’t do it. Pdf files can be opened as Draw files but not as Writer files.

soffice --infilter=“writer_pdf_import” --convert-to doc file.pdf