An Alfred 4+ workflow to export Word documents to PDF. Uses Microsoft Word for the best possible conversion.
The workflow can be run via its Export as PDF File Action or by searching for a Word document to convert with the keyword
word2pdf. It can either use macOS's built-in ability to generate PDFs via the Print dialog (the default) or Word's built-in PDF export, which is based on a web service provided by Microsoft.
Download Word to PDF.alfredworkflow and double-click to install.
word2pdf <query>— Select a Word document to export.
↩— Export to selected document to PDF.
Export as PDF— File Action to export selected files.
File Buffer— Don't forget you can collect files in Alfred's File Buffer and send them to the File Action all at once.
The workflow has two configuration settings:
- Set to the name of the application you'd like to open the exported PDFs with. Default value is
Preview. Set to
Finderto reveal the PDFs in Finder. Clear the value to not open the PDFs.
- Set to
trueto use Word's native PDF export (i.e. Microsoft's online service). This can be much faster and more reliable than UI scripting the Print dialog, but it has obvious privacy implications.
This workflow was built for this thread on the Alfred forum.