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.pdfAfter 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.pdfI 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.
33 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.pdfThis is working perfectly.
3Did 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