导出 Google Workspace 文档的 MIME 类型
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
下表显示了 Google Workspace 文档与导出 MIME 类型之间的对应关系:
文档类型 |
格式 |
MIME 类型 |
文件扩展名 |
文档 |
Microsoft Word |
application/vnd.openxmlformats-officedocument.wordprocessingml.document |
.docx |
|
OpenDocument |
application/vnd.oasis.opendocument.text |
.odt |
|
RTF |
application/rtf |
.rtf |
|
PDF |
application/pdf |
.pdf |
|
纯文本 |
text/plain |
.txt |
|
网页 (HTML) |
application/zip |
.zip |
|
EPUB |
application/epub+zip |
.epub |
|
Markdown |
text/markdown |
.md |
电子表格 |
Microsoft Excel |
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
.xlsx |
|
OpenDocument |
application/vnd.oasis.opendocument.spreadsheet |
.ods |
|
PDF |
application/pdf |
.pdf |
|
网页 (HTML) |
application/zip |
.zip |
|
逗号分隔值(仅限第一个工作表) |
文本/csv |
.csv |
|
制表符分隔值(仅限第一个工作表) |
text/tab-separated-values |
.tsv |
演示文稿 |
Microsoft PowerPoint |
application/vnd.openxmlformats-officedocument.presentationml.presentation |
.pptx |
|
ODP |
application/vnd.oasis.opendocument.presentation |
.odp |
|
PDF |
application/pdf |
.pdf |
|
纯文本 |
text/plain |
.txt |
|
JPEG(仅限第一张幻灯片) |
image/jpeg |
.jpg |
|
PNG(仅限第一张幻灯片) |
image/png |
.png |
|
可缩放矢量图形(仅限第一张幻灯片) |
image/svg+xml |
.svg |
绘图 |
PDF |
application/pdf |
.pdf |
|
JPEG |
image/jpeg |
.jpg |
|
PNG |
image/png |
.png |
|
可缩放矢量图形 |
image/svg+xml |
.svg |
Apps 脚本 |
JSON |
application/vnd.google-apps.script+json |
.json |
Google Vids |
MP4 |
application/mp4 |
.mp4 |
您还可以使用 Google Apps 脚本导出 Google Workspace 文档。如需详细了解在 Apps 脚本中导出内容时支持的格式,请参阅
Google 文档、
Google 表格和 Google 幻灯片的参考文档。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-29。
[null,null,["最后更新时间 (UTC):2025-08-29。"],[],[],null,["# Export MIME types for Google Workspace documents\n\nThe following table shows how Google Workspace documents map to export [MIME\ntypes](https://www.iana.org/assignments/media-types/media-types.xhtml):\n\n| Document Type | Format | MIME Type | File Extension |\n|-------------------|---------------------------------------------|---------------------------------------------------------------------------|----------------|\n| **Documents** | Microsoft Word | application/vnd.openxmlformats-officedocument.wordprocessingml.document | .docx |\n| | OpenDocument | application/vnd.oasis.opendocument.text | .odt |\n| | Rich Text | application/rtf | .rtf |\n| | PDF | application/pdf | .pdf |\n| | Plain Text | text/plain | .txt |\n| | Web Page (HTML) | application/zip | .zip |\n| | EPUB | application/epub+zip | .epub |\n| | Markdown | text/markdown | .md |\n| **Spreadsheets** | Microsoft Excel | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | .xlsx |\n| | OpenDocument | application/vnd.oasis.opendocument.spreadsheet | .ods |\n| | PDF | application/pdf | .pdf |\n| | Web Page (HTML) | application/zip | .zip |\n| | Comma Separated Values (first-sheet only) | text/csv | .csv |\n| | Tab Separated Values (first-sheet only) | text/tab-separated-values | .tsv |\n| **Presentations** | Microsoft PowerPoint | application/vnd.openxmlformats-officedocument.presentationml.presentation | .pptx |\n| | ODP | application/vnd.oasis.opendocument.presentation | .odp |\n| | PDF | application/pdf | .pdf |\n| | Plain Text | text/plain | .txt |\n| | JPEG (first-slide only) | image/jpeg | .jpg |\n| | PNG (first-slide only) | image/png | .png |\n| | Scalable Vector Graphics (first-slide only) | image/svg+xml | .svg |\n| **Drawings** | PDF | application/pdf | .pdf |\n| | JPEG | image/jpeg | .jpg |\n| | PNG | image/png | .png |\n| | Scalable Vector Graphics | image/svg+xml | .svg |\n| **Apps Script** | JSON | application/vnd.google-apps.script+json | .json |\n| **Google Vids** | MP4 | application/mp4 | .mp4 |\n\n| **Note:** To view a list of all system supported export formats for a user, retrieve an [`about`](/workspace/drive/api/reference/rest/v3/about) resource by calling the [`about.get`](/workspace/drive/api/reference/rest/v3/about/get) method with the `fields` parameter set to [`exportFormats`](/workspace/drive/api/reference/rest/v3/about#About.FIELDS.export_formats).\n\nYou can also export Google Workspace\ndocuments using Google Apps Script. For more information on supported formats\nwhen exporting content in Apps Script, see the reference\ndocumentation for [Google Docs](/apps-script/reference/document/document#getascontenttype), [Google Sheets](/apps-script/reference/spreadsheet/spreadsheet#getascontenttype),\nand [Google Slides](/apps-script/reference/slides/image#getascontenttype).\n\nRelated topics\n--------------\n\n- [Google Workspace and Google Drive supported MIME types](/workspace/drive/api/guides/mime-types)"]]