Saturday, May 11, 2024
38
rated 0 times [  38] [ 0]  / answers: 1 / hits: 66810  / 2 Years ago, wed, march 9, 2022, 3:55:37

I need to batch convert a set of .doc or .docx files to .pdf in terminal, not using a GUI.



It would be helpful if I could batch-process multiple files.



I would also like to maintain as much meta-data as possible.


More From » command-line

 Answers
6

lowriter can be used as a command line tool (lowriter is a part of LibreOffice)



lowriter --convert-to pdf *.doc
convert /home/bodhi/Documents/testdoc2.doc -> /home/bodhi/Documents/testdoc2.pdf using writer_pdf_Export
convert /home/bodhi/Documents/testdoc.doc -> /home/bodhi/Documents/testdoc.pdf using writer_pdf_Export

evince testdoc.pdf


I do not have windows, so testdoc download from here



www.mltweb.com/prof/testdoc.doc


[#39801] Wednesday, March 9, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oleard

Total Points: 344
Total Questions: 105
Total Answers: 113

Location: Bonaire
Member since Tue, Sep 20, 2022
2 Years ago
oleard questions
Mon, Sep 26, 22, 18:21, 2 Years ago
Mon, Nov 1, 21, 21:27, 3 Years ago
Sat, May 7, 22, 20:47, 2 Years ago
Sun, Oct 2, 22, 01:10, 2 Years ago
;