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.
asked Jan 30, 2013 at 19:24 93 1 1 silver badge 8 8 bronze badgesYou can use docx2pdf to batch convert word documents to pdf: github.com/AlJohri/docx2pdf. It has a command line tool and a python library.
Commented Feb 18, 2020 at 6:45NOTE : 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).
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.