Office to PDF Guide
4 methods to convert Office docs to PDF: Office, WPS, LibreOffice CLI
📢 Office 文档转 PDF 需要本地软件支持:文档排版复杂,浏览器无法完美还原。以下方法按推荐度排序,檔案全程在你电脑上。
方法 1 · 用 Office / WPS 直接导出(最简单)
| Microsoft Office | 開啟檔案 → 檔案 → 另存为/导出 → 選擇 PDF |
| WPS(免费) | 開啟檔案 → 檔案 → 輸出为 PDF |
方法 2 · 免费 LibreOffice 批量命令行(适合大量檔案)
| Windows | winget install TheDocumentFoundation.LibreOffice |
| macOS | brew install --cask libreoffice 或官网下載 |
| Linux | sudo apt install libreoffice |
执行方式:进入檔案所在檔案夹開啟终端粘贴命令;Windows 下 soffice 位于 C:\Program Files\LibreOffice\program\,若提示找不到命令请先切换到该目录或加入 PATH。
方法 3 · macOS / Windows 打印为 PDF(万能兜底)
任何能開啟该檔案的软件:Ctrl+P / Cmd+P → 打印机選擇「另存为 PDF / Microsoft Print to PDF」