Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

feat: update documentation to include support for PPTX and XLSX file types

myhlolie96faf224e91
diff --git a/README.md b/README.md
index fb61ba36..f8f26b51 100644
--- a/README.md
+++ b/README.md
@@ -46,11 +46,12 @@
<details>
<summary>MinerU — High-accuracy document parsing engine for LLM · RAG · Agent workflows</summary>
-Converts PDF · Word · PPT · Images · Web pages into structured Markdown / JSON · VLM+OCR dual engine · 109 languages <br>
+Converts PDF · DOCX · PPTX · XLSX · Images · Web pages into structured Markdown / JSON · VLM+OCR dual engine · 109 languages <br>
MCP Server · LangChain / Dify / FastGPT native integration · 10+ domestic AI chip support
**🔍 Core Parsing Capabilities**
+- Native support for `DOCX`, `PPTX`, and `XLSX` parsing
- Formulas → LaTeX · Tables → HTML, accurate layout reconstruction
- Supports scanned docs, handwriting, multi-column layouts, cross-page table merging
- Output follows human reading order with automatic header/footer removal
@@ -108,7 +109,7 @@ Domestic AI chips: Ascend · Cambricon · Enflame · MetaX · Moore Threads · K
## Project Introduction
-MinerU is a document parsing tool that converts `PDF`, image, and `DOCX` inputs into machine-readable formats such as Markdown and JSON for downstream retrieval, extraction, and processing.
+MinerU is a document parsing tool that converts `PDF`, image, `DOCX`, `PPTX`, and `XLSX` inputs into machine-readable formats such as Markdown and JSON for downstream retrieval, extraction, and processing.
MinerU was born during the pre-training process of [InternLM](https://github.com/InternLM/InternLM). We focus on solving symbol conversion issues in scientific literature and hope to contribute to technological development in the era of large models.
Compared to well-known commercial products, MinerU is still young. If you encounter any issues or if the results are not as expected, please submit an issue on [issue](https://github.com/opendatalab/MinerU/issues) and **attach the relevant document or sample file**.
@@ -116,7 +117,7 @@ https://github.com/user-attachments/assets/4bea02c9-6d54-4cd6-97ed-dff14340982c
## Key Features
-- Support `PDF`, image, and `DOCX` inputs.
+- Support `PDF`, image, `DOCX`, `PPTX`, and `XLSX` inputs.
- Remove headers, footers, footnotes, page numbers, etc., to ensure semantic coherence.
- Output text in human-readable order, suitable for single-column, multi-column, and complex layouts.
- Preserve the structure of the original document, including headings, paragraphs, lists, etc.
@@ -274,7 +275,7 @@ If your device does not meet the GPU acceleration requirements, you can specify
mineru -p <input_path> -o <output_path> -b pipeline
```
-`mineru` currently supports local `PDF`, image, and `DOCX` file or directory inputs, and can be used for document parsing through the CLI, API, WebUI, and `mineru-router`. For detailed instructions, please refer to the [Usage Guide](https://opendatalab.github.io/MinerU/usage/).
+`mineru` currently supports local `PDF`, image, `DOCX`, `PPTX`, and `XLSX` file or directory inputs, and can be used for document parsing through the CLI, API, WebUI, and `mineru-router`. For detailed instructions, please refer to the [Usage Guide](https://opendatalab.github.io/MinerU/usage/).
# TODO
diff --git a/README_zh-CN.md b/README_zh-CN.md
index 4d8f4d68..9701bf43 100644
--- a/README_zh-CN.md
+++ b/README_zh-CN.md
@@ -45,10 +45,11 @@
<details>
<summary>MinerU — 专为 LLM · RAG · Agent 场景构建的高精度文档解析引擎 </summary>
-将 PDF · Word · PPT · 图片 · 网页转为结构化 Markdown / JSON · VLM+OCR 双引擎 · 109 种语言 <br>
+将 PDF · DOCX · PPTX · XLSX · 图片 · 网页转为结构化 Markdown / JSON · VLM+OCR 双引擎 · 109 种语言 <br>
MCP Server · LangChain / Dify / FastGPT 原生集成 · 10+ 国产算力适配 <br>
**🔍 核心解析能力**
+- 原生支持 `DOCX`、`PPTX`、`XLSX` 解析
- 公式 → LaTeX · 表格 → HTML,精准还原复杂版面
- 支持扫描件、手写体、多栏布局、跨页表格合并
- 输出符合人类阅读顺序,自动去除页眉页脚
@@ -107,7 +108,7 @@ MCP Server · LangChain / Dify / FastGPT 原生集成 · 10+ 国产算力适配
## 项目简介
-MinerU 是一款文档解析工具,可将 `PDF`、图片和 `DOCX` 转化为机器可读格式(如 Markdown、JSON),便于后续检索、抽取与二次处理。
+MinerU 是一款文档解析工具,可将 `PDF`、图片以及 `DOCX`、`PPTX`、`XLSX` 转化为机器可读格式(如 Markdown、JSON),便于后续检索、抽取与二次处理。
MinerU诞生于[书生-浦语](https://github.com/InternLM/InternLM)的预训练过程中,我们将会集中精力解决科技文献中的符号转化问题,希望在大模型时代为科技发展做出贡献。
相比国内外知名商用产品MinerU还很年轻,如果遇到问题或者结果不及预期请到[issue](https://github.com/opendatalab/MinerU/issues)提交问题,同时**附上相关文档或样例文件**。
@@ -115,7 +116,7 @@ https://github.com/user-attachments/assets/4bea02c9-6d54-4cd6-97ed-dff14340982c
## 主要功能
-- 支持 `PDF`、图片与 `DOCX` 输入
+- 支持 `PDF`、图片与 `DOCX`、`PPTX`、`XLSX` 输入
- 删除页眉、页脚、脚注、页码等元素,确保语义连贯
- 输出符合人类阅读顺序的文本,适用于单栏、多栏及复杂排版
- 保留原文档的结构,包括标题、段落、列表等
@@ -280,7 +281,7 @@ mineru -p <input_path> -o <output_path>
mineru -p <input_path> -o <output_path> -b pipeline
```
-当前 `mineru` 支持本地 `PDF / 图片 / DOCX` 文件或目录输入,并可通过命令行、API、WebUI、`mineru-router` 等多种方式进行文档解析,具体使用方法请参考[使用指南](https://opendatalab.github.io/MinerU/zh/usage/)。
+当前 `mineru` 支持本地 `PDF / 图片 / DOCX / PPTX / XLSX` 文件或目录输入,并可通过命令行、API、WebUI、`mineru-router` 等多种方式进行文档解析,具体使用方法请参考[使用指南](https://opendatalab.github.io/MinerU/zh/usage/)。
# TODO
diff --git a/docs/en/index.md b/docs/en/index.md
index 25605e69..fe3ea856 100644
--- a/docs/en/index.md
+++ b/docs/en/index.md
@@ -41,7 +41,7 @@
## Project Introduction
-MinerU is a document parsing tool that converts `PDF`, image, and `DOCX` inputs into machine-readable formats such as Markdown and JSON for downstream retrieval, extraction, and processing.
+MinerU is a document parsing tool that converts `PDF`, image, `DOCX`, `PPTX`, and `XLSX` inputs into machine-readable formats such as Markdown and JSON for downstream retrieval, extraction, and processing.
MinerU was born during the pre-training process of [InternLM](https://github.com/InternLM/InternLM). We focus on solving symbol conversion issues in scientific literature and hope to contribute to technological development in the era of large models.
Compared to well-known commercial products domestically and internationally, MinerU is still young. If you encounter any issues or if the results are not as expected, please submit an issue on [GitHub Issues](https://github.com/opendatalab/MinerU/issues) and **attach the relevant document or sample file**.
@@ -49,7 +49,7 @@ Compared to well-known commercial products domestically and internationally, Min
## Key Features
-- Support `PDF`, image, and `DOCX` inputs
+- Support `PDF`, image, `DOCX`, `PPTX`, and `XLSX` inputs
- Remove headers, footers, footnotes, page numbers and other elements to ensure semantic coherence
- Output text in human reading order, suitable for single-column, multi-column and complex layouts
- Retain the original document structure, including titles, paragraphs, lists, etc.
diff --git a/docs/en/quick_start/index.md b/docs/en/quick_start/index.md
index 67769d1a..b4a140ef 100644
--- a/docs/en/quick_start/index.md
+++ b/docs/en/quick_start/index.md
@@ -138,6 +138,6 @@ If your device does not meet the GPU acceleration requirements, you can specify
mineru -p <input_path> -o <output_path> -b pipeline
```
-`mineru` currently supports local `PDF`, image, and `DOCX` file or directory inputs.
+`mineru` currently supports local `PDF`, image, `DOCX`, `PPTX`, and `XLSX` file or directory inputs.
You can use MinerU for document parsing through the CLI, API, WebUI. For detailed instructions, please refer to the [Usage Guide](../usage/index.md).
diff --git a/docs/en/usage/cli_tools.md b/docs/en/usage/cli_tools.md
index 33f3fb0a..4ced9e9d 100644
--- a/docs/en/usage/cli_tools.md
+++ b/docs/en/usage/cli_tools.md
@@ -24,7 +24,7 @@ Options:
--help Show help information
```
> [!TIP]
-> `mineru` currently supports local `PDF`, image, and `DOCX` file or directory inputs.
+> `mineru` currently supports local `PDF`, image, `DOCX`, `PPTX`, and `XLSX` file or directory inputs.
```bash
mineru-api --help
diff --git a/docs/en/usage/quick_usage.md b/docs/en/usage/quick_usage.md
index 96c996b4..4768f4aa 100644
--- a/docs/en/usage/quick_usage.md
+++ b/docs/en/usage/quick_usage.md
@@ -13,7 +13,7 @@ MinerU has built-in command line tools that allow users to quickly use MinerU fo
mineru -p <input_path> -o <output_path>
```
> [!TIP]
->- `<input_path>`: Local `PDF` / image / `DOCX` file or directory
+>- `<input_path>`: Local `PDF` / image / `DOCX` / `PPTX` / `XLSX` file or directory
>- `<output_path>`: Output directory
>- Without `--api-url`, the CLI launches a temporary local `mineru-api`
>- With `--api-url`, the CLI connects to an existing local or remote FastAPI service directly
@@ -41,7 +41,7 @@ If you need to adjust parsing options through custom parameters, you can also ch
>- Synchronous parsing endpoint: `POST /file_parse`
>- Task query endpoints: `GET /tasks/{task_id}`, `GET /tasks/{task_id}/result`
>- API outputs are controlled by the server and written to `./output` by default
- >- Uploads currently support `PDF`, image, and `DOCX` files
+ >- Uploads currently support `PDF`, image, `DOCX`, `PPTX`, and `XLSX` files
>
>- `POST /tasks` returns immediately with a `task_id`. `POST /file_parse` uses the same task manager internally, waits for the task to finish, and then returns the final result synchronously.
>- When a task is waiting in the queue, both the submission response and task-status response may include `queued_ahead` to indicate how many tasks are ahead of it.
@@ -84,7 +84,7 @@ If you need to adjust parsing options through custom parameters, you can also ch
>- Access `http://127.0.0.1:7860` in your browser to use the Gradio WebUI.
>- Without `--api-url`, Gradio starts a reusable local `mineru-api`; with `--api-url`, it reuses an existing local or remote service.
>- `--enable-vlm-preload true` makes Gradio start its local `mineru-api` during WebUI startup and wait for VLM preload to finish. It is ignored when `--api-url` points to an existing service.
- >- The WebUI currently accepts `PDF`, image, and `DOCX` uploads.
+ >- The WebUI currently accepts `PDF`, image, `DOCX`, `PPTX`, and `XLSX` uploads.
- Use `mineru-router` for multi-service / multi-GPU orchestration:
```bash
diff --git a/docs/zh/index.md b/docs/zh/index.md
index 1c15acd3..78b1533c 100644
--- a/docs/zh/index.md
+++ b/docs/zh/index.md
@@ -40,7 +40,7 @@
## 项目简介
-MinerU 是一款文档解析工具,可将 `PDF`、图片和 `DOCX` 转化为机器可读格式(如 Markdown、JSON),便于后续检索、抽取与二次处理。
+MinerU 是一款文档解析工具,可将 `PDF`、图片以及 `DOCX`、`PPTX`、`XLSX` 转化为机器可读格式(如 Markdown、JSON),便于后续检索、抽取与二次处理。
MinerU诞生于[书生-浦语](https://github.com/InternLM/InternLM)的预训练过程中,我们将会集中精力解决科技文献中的符号转化问题,希望在大模型时代为科技发展做出贡献。
相比国内外知名商用产品MinerU还很年轻,如果遇到问题或者结果不及预期请到[issue](https://github.com/opendatalab/MinerU/issues)提交问题,同时**附上相关文档或样例文件**。
@@ -48,7 +48,7 @@ MinerU诞生于[书生-浦语](https://github.com/InternLM/InternLM)的预训练
## 主要功能
-- 支持 `PDF`、图片与 `DOCX` 输入
+- 支持 `PDF`、图片与 `DOCX`、`PPTX`、`XLSX` 输入
- 删除页眉、页脚、脚注、页码等元素,确保语义连贯
- 输出符合人类阅读顺序的文本,适用于单栏、多栏及复杂排版
- 保留原文档的结构,包括标题、段落、列表等
diff --git a/docs/zh/quick_start/index.md b/docs/zh/quick_start/index.md
index 08d24fc7..be259c2d 100644
--- a/docs/zh/quick_start/index.md
+++ b/docs/zh/quick_start/index.md
@@ -149,6 +149,6 @@ mineru -p <input_path> -o <output_path>
mineru -p <input_path> -o <output_path> -b pipeline
```
-当前 `mineru` 支持本地 `PDF / 图片 / DOCX` 文件或目录输入。
+当前 `mineru` 支持本地 `PDF / 图片 / DOCX / PPTX / XLSX` 文件或目录输入。
您可以通过命令行、API、WebUI 等多种方式使用 MinerU 进行文档解析,具体使用方法请参考[使用指南](../usage/index.md)。
diff --git a/docs/zh/usage/cli_tools.md b/docs/zh/usage/cli_tools.md
index a8883f37..566e3769 100644
--- a/docs/zh/usage/cli_tools.md
+++ b/docs/zh/usage/cli_tools.md
@@ -24,7 +24,7 @@ Options:
--help 显示帮助信息
```
> [!TIP]
-> `mineru` 当前支持本地 `PDF`、图片与 `DOCX` 文件或目录输入。
+> `mineru` 当前支持本地 `PDF`、图片与 `DOCX`、`PPTX`、`XLSX` 文件或目录输入。
```bash
mineru-api --help
diff --git a/docs/zh/usage/quick_usage.md b/docs/zh/usage/quick_usage.md
index 0f767166..bd85c179 100644
--- a/docs/zh/usage/quick_usage.md
+++ b/docs/zh/usage/quick_usage.md
@@ -13,7 +13,7 @@ MinerU内置了命令行工具,用户可以通过命令行快速使用MinerU
mineru -p <input_path> -o <output_path>
```
> [!TIP]
-> - `<input_path>`:本地 `PDF` / 图片 / `DOCX` 文件或目录
+> - `<input_path>`:本地 `PDF` / 图片 / `DOCX` / `PPTX` / `XLSX` 文件或目录
> - `<output_path>`:输出目录
> - 未传 `--api-url` 时,CLI 会自动拉起本地临时 `mineru-api`
> - 传入 `--api-url` 时,CLI 会直连远端或已有本地 FastAPI 服务
@@ -41,7 +41,7 @@ mineru -p <input_path> -o <output_path>
>- 同步解析接口:`POST /file_parse`
>- 任务查询接口:`GET /tasks/{task_id}`、`GET /tasks/{task_id}/result`
>- API 输出目录由服务端固定控制,默认写入 `./output`
- >- 上传文件当前支持 `PDF`、图片与 `DOCX`
+ >- 上传文件当前支持 `PDF`、图片与 `DOCX`、`PPTX`、`XLSX`
>
>- `POST /tasks` 会立即返回 `task_id`;`POST /file_parse` 会在内部提交到同一个任务管理器,等待任务完成后同步返回最终结果。
>- 当任务处于排队状态时,任务提交结果和状态查询结果中可能会返回 `queued_ahead` 字段,用于表示前方排队任务数。
@@ -84,7 +84,7 @@ mineru -p <input_path> -o <output_path>
>- 在浏览器中访问 `http://127.0.0.1:7860` 使用 Gradio WebUI。
>- 未传 `--api-url` 时,Gradio 会自动拉起可复用的本地 `mineru-api`;传入 `--api-url` 时则会复用已有本地或远端服务。
>- `--enable-vlm-preload true` 会让 Gradio 在 WebUI 启动阶段主动拉起本地 `mineru-api` 并等待 VLM 预加载完成;传入 `--api-url` 时会被忽略。
- >- WebUI 当前支持上传 `PDF`、图片与 `DOCX` 文件。
+ >- WebUI 当前支持上传 `PDF`、图片与 `DOCX`、`PPTX`、`XLSX` 文件。
- 通过 `mineru-router` 进行多服务 / 多 GPU 编排:
```bash
diff --git a/mineru/cli/client.py b/mineru/cli/client.py
index 5df72ee4..bc7a5815 100644
--- a/mineru/cli/client.py
+++ b/mineru/cli/client.py
@@ -960,7 +960,7 @@ async def run_orchestrated_cli(
"input_path",
type=click.Path(exists=True, path_type=Path),
required=True,
- help="local filepath or directory. support pdf, png, jpg, jpeg files",
+ help="local filepath or directory. support pdf, image, docx, pptx, xlsx files",
)
@click.option(
"-o",
diff --git a/mineru/cli/fast_api.py b/mineru/cli/fast_api.py
index 1248b135..211bfab6 100644
--- a/mineru/cli/fast_api.py
+++ b/mineru/cli/fast_api.py
@@ -738,7 +738,7 @@ async def parse_request_form(
files: Annotated[
list[UploadFile],
File(
- description="Upload pdf or image files for parsing",
+ description="Upload PDF, image, DOCX, PPTX, or XLSX files for parsing",
json_schema_extra=SWAGGER_UI_FILE_ARRAY_SCHEMA_EXTRA,
),
],
diff --git a/mineru/cli/gradio_app.py b/mineru/cli/gradio_app.py
index 2eb5c329..3123a427 100644
--- a/mineru/cli/gradio_app.py
+++ b/mineru/cli/gradio_app.py
@@ -1085,7 +1085,7 @@ def main(ctx,
# 创建 i18n 实例,支持中英文
i18n = gr.I18n(
en={
- "upload_file": "Please select a file to upload (PDF, DOCX, or image)",
+ "upload_file": "Please select a file to upload (PDF, image, DOCX, PPTX, or XLSX)",
"max_pages": "Max convert pages",
"backend": "Backend",
"server_url": "Server URL",
@@ -1117,7 +1117,7 @@ def main(ctx,
"backend_info_default": "Select the backend engine for document parsing.",
},
zh={
- "upload_file": "请选择要上传的文件(PDF、DOCX 或图片)",
+ "upload_file": "请选择要上传的文件(PDF、图片、DOCX、PPTX 或 XLSX)",
"max_pages": "最大转换页数",
"backend": "解析后端",
"server_url": "服务器地址",