Ask Your Question
0

Batch convert old Word .docs to .pdf on Mac [closed]

asked 2014-06-27 20:52:34 +0200

Terwise gravatar image

updated 2015-09-03 00:34:50 +0200

Alex Kemp gravatar image

I have lots of old MS Word docs from the 1980s and 1990s that I'd like to batch convert to .pdfs one folder at a time. I've downloaded LibreOffice to my applications folder and run the following line in Terminal (while in the Applications directory):

libreoffice --headless --convert-to pdf --outdir ~/1987Letters ~/1987Letters/*.doc

The response I keep getting in Terminal is "-bash: libreoffice: command not found"

I know I'm doing something wrong, but I have no idea what. Any advice will be greatly appreciated.

Thanks in advance.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-02-26 22:06:22.669575

1 Answer

Sort by » oldest newest most voted
0

answered 2014-06-28 11:34:06 +0200

oweng gravatar image

MacOS is stating it does not recognise the command "libreoffice" most likely because the program is not included on the path. Try using /Applications/LibreOffice.app/Contents/program/soffice in place of "libreoffice". Similar answer here.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-06-27 20:52:34 +0200

Seen: 666 times

Last updated: Jun 28 '14