docx 批量转 pdf
太牛逼了!
横跨 win 和 macos 平台!


You can use the docx2pdf command line utility to batch convert docx to pdf on macOS (or windows). It uses Microsoft Word's APIs to directly convert to PDF creating a perfect copy. It uses JXA (Javscript for Automation, basically AppleScript in JS) in macOS and win32com in Windows.

pip install docx2pdf
docx2pdf myfolder/

Disclaimer: I wrote this tool after struggling to find a cross-platform solution for batch converting docx to pdf with zero formatting issues since it directly uses Microsoft Word. https://github.com/AlJohri/docx2pdf
GitHub - AlJohri/docx2pdf
 
 
Back to Top