M BUZZ CRAZE NEWS
// general

Convert PDF to Word Using Libreoffice in terminal

By David Jones

I am using the following libreoffice command to convert my pdf files into word(doc)

lowriter --headless --infilter='writer_pdf_import' --convert-to doc:"MS Word 2007 XML" sample.pdf

After converting the output document is having each line bordered with a rectangular box. But if I use the same command with MS Word 97 it is working perfectly.

 lowriter --headless --infilter='writer_pdf_import' --convert-to doc:"MS Word 97" sample.pdf

I don't know what is the mistake in the first command. Please help me with this. And also suggest me if I need to add any other attributes that will improve the efficiency and quality of conversion.

3

3 Answers

I'm using LibreOffice for a long now but still can't understand it how does it work with different files.
I'm using the below command to convert PDF to WORD. You may try :

libreoffice --infilter="writer_pdf_import" --convert-to docx input.pdf

This is working perfectly.

3

Did you try with soffice?

soffice --infilter="writer_pdf_import" --convert-to docx sample.pdf

As per this post: Can I convert a PDF file to a Word File? - Ask LibreOffice

No, LibreOffice will not convert a PDF to a DOC (or ODT) or so.

If your pdf is having texts and not images you can open it with LibreOffice draw and then copy and paste and edit & save document as you need.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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