3

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.

  • an idea maybe dose it work to convert it to html and then to doc? – GiannakopoulosJ Jun 21 '16 at 19:57
1

You could try abiword software. e.g:

abiword --to=doc example.pdf
  • 1
    Already tried, it only converts the text without the images – user2972081 Jun 21 '16 at 19:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.