Skip to main content
Plain 的交付默认是链接,不是文件 —— 永久链接指向当前版本,收件人可以评论、Fork、问 agent。 /api/export 只在你确实需要一份离线文件时用,导出格式都是 web-native:HTML / PDF / PNG。 Office 格式(.pptx / .docx / .xlsx)只进不出 —— 你可以上传它们变成可编辑的 artifact(见 Brand templates),但 Plain 不导出 Office 文件。真要一份 slide 文件,用 PDF,PowerPoint / Keynote / WPS 都能打开。

Request

允许组合

三件套都走同一套 web-native 导出:
  • deck → html | pdf | png(单页)
  • doc → html | pdf
  • sheet → html | pdf | png

Response

  • html → Content-Type: text/html,自包含 CSS/JS 的完整文档
  • pdf → Content-Type: application/pdf
  • png → Content-Type: image/png
都带 Content-Disposition: attachment; filename="..." 让浏览器自动下载。

用例

保真承诺

  • .pdf → 浏览器打印 pipeline,字体保真;要一份 slide 文件发给别人,PDF 就是答案(PowerPoint / Keynote / WPS 都能开)
  • .html → 自包含单文件,可离线打开、可 iframe、可托管
  • .png → 单页/单块位图,贴群、贴文档、贴帖子
多数时候你根本不需要导出。用 /api/render 直接拿 HTML,或者分享永久链接 —— 内容维护一次,Plain 选择合适的表达,交付不是一次下载,而是下一场对话的起点。
如果你需要严格按公司模板视觉输出,先上传模板再生成,见 Brand templates。