PDF转DOC使用cmd

PDF to DOC using cmd

如何将 pdf 文件转换为 doc? 我尝试了以下方法:

soffice.exe --convert-to doc C:\Users\Administrator\Desktop\pdfda.pdf

当我按下回车键时没有任何反应,我安装了 libreoffice 并且我正在使用 Windows 10.

对于其他登陆这里的支持建议是使用 soffice NOT soffice.exe 因为那应该在 Windows 上调用控制台命令行版本 soffice.com

https://ask.libreoffice.org/t/convert-docx-to-pdf-via-the-commandline-on-windows-10/64418/6

Starting from v.6.3, you should not use soffice.exe when working in terminal. You better just omit the extension (like [invoke in folder >] soffice), or explicitly use soffice.com, to use a version specifically created for console, which would output the errors, if any, to the console, instead of silently discarding any output. Also note that you should make sure that LibreOffice is not running in the background when you are launching the command line, because otherwise your command would be redirected to the existing GUI process, and you may again not see the error messages.

或者,在调用命令行时指定一个单独的用户配置文件以允许单独的进程 - 请参阅 -env command line parameter

完整文档位于 https://documentation.libreoffice.org/en/english-documentation/