Proper way to convert PDF to word from bash command-line
7
votes
4
answers
20351
views
I need to convert 1K pdf files to doc on a debian server. I can convert a PDF to word using libreoffice commandline:
libreoffice --headless --invisible --convert-to doc Sample-doc-file-100kb.pdf
Or using soffice:
soffice --nocrashreport --nologo --nolockcheck --nofirststartwizard --invisible --headless --convert-to doc Sample-doc-file-100kb.pdf
The main problem with the above two commands, is that the doc file doesn't include images in the pages, it only contains the formatted text. Is there a better way to convert pdf to doc, including also the images present in the pdf? I am not interested in web services like zamzam, I need to do that from command-line on the server. Thank you.
Asked by user2972081
(171 rep)
Jun 21, 2016, 07:45 PM
Last activity: Mar 5, 2025, 03:27 AM
Last activity: Mar 5, 2025, 03:27 AM