wps_word_export_pdf
Export the current document to PDF, specifying a path or defaulting to the same directory, but only use ~/Downloads or the original location to avoid silent failures.
Instructions
把当前文档导出为 PDF。不传 path 则保存在同目录同名 .pdf。重要:WPS 是沙盒应用,只被系统授权写入 ~/Downloads、或当前文档已打开的原目录;导出到其它未授权路径会被系统静默拦截——WPS 会返回"成功"但文件实际没有生成,且这个失败在对象模型层拿不到任何错误信息。强烈建议导出到 ~/Downloads,导出后务必自行核实文件是否真的存在(本工具不保证路径正确性)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | 导出路径(可选) |