Office 转 PDF
docx / xlsx / pptx 转 PDF 的四种方法:Office、WPS、免费 LibreOffice 命令行
📢 Office document to PDF requires local software: Document formatting is complex, browsers cannot perfectly reproduce it. Methods below are sorted by recommendation, files stay on your computer.
Method 1 · Export directly with Office / WPS (easiest)
| Microsoft Office | Open file → File → Save As/Export → Select PDF |
| WPS (free) | Open file → File → Export as PDF |
Method 2 · Free LibreOffice batch command line (for many files)
| Windows | winget install TheDocumentFoundation.LibreOffice |
| macOS | brew install --cask libreoffice or download from official site |
| Linux | sudo apt install libreoffice |
Execution: Navigate to the folder containing the file, open terminal and paste command. On Windows, soffice is located at C:\Program Files\LibreOffice\program\. If command not found, switch to that directory or add to PATH.
Method 3 · macOS / Windows Print to PDF (universal fallback)
Any software that can open the file: Ctrl+P / Cmd+P → Printer select 'Save as PDF / Microsoft Print to PDF'
关于此工具
文件格式工具覆盖编码转换与乱码修复、字幕时间轴调整、Office / 电子书转换指引以及常用格式速查表,能在浏览器完成的操作全部本地执行。