Is there a scriptable way that I can convert several MS Word documents to PDF? I thought this might be possible using python
, but I am unable to find any advice online on how best to do this.
-
You can use docx2pdf to batch convert word documents to pdf: github.com/AlJohri/docx2pdf. It has a command line tool and a python library.– Al JohriFeb 18, 2020 at 6:45
1 Answer
NOTE : the below instructions are for Macs running 10.4 or earlier, no longer works on 10.5 (Leopard), 10.6 (Snow Leopard), 10.7 (Lion), 10.8 (Mountain Lion).
Open Automator.
Create a new custom workflow.
From the Actions panel library, select Files & Folders then double-click Get Specified Finder Items.
Add the items you wish to convert.
Next, from the library, select Documents, then double click Convert Format of Word Documents.
From the dropdown menu, select the format you wish to convert the files to. In our case we select Portable Document Format (PDF)
Now we are ready to run the action.
Click the run button in the top right of the automator window.
Open up your destination folder and verify your files have been successfully converted.
-
1This is an old Automator action, there is no longer a "Convert Format of Word Documents" (also no "Documents" folder from within the Actions panel "Library" folder. Feb 5, 2013 at 7:54