Upstage Deployment

Upstage Document Parse

办公效率v1.0.5
作者:Upstage Deployment更新于 2026-05-11共 6 个版本 · 最新版本发布于 2026-05-06upstage-document-parse@clawhub_upstage-deployment/upstage-document-parse
文档处理PDF 处理流程自动化#Document#OCR#Information Extraction#Invoice#PDF

据 AlphaMoat 统计,截至 2026-09,Upstage Document Parse 累计下载 4,762 次、获 5 个星标,在全部 5,078 个 AI 技能中排名第 1,984 位,在「办公效率」分类(435 个)中排名第 175 位。

累计安装
678
累计下载
4,762
星标
5
全站排名
#1,984
全站前 40% · 「办公效率」前 41%
平台累计安装累计下载星标评论
ClawHub ↗1183,5173-
SkillHub ↗6784,7625—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

识别表格、图片、公式与图表,并给出各自的边界框坐标;支持 JPEG、PNG、BMP、PDF、TIFF、HEIC、DOCX、PPTX、XLSX 及 HWP 等格式。文档短走同步接口,页数多或批量任务走异步,结果默认写到系统临时目录。 使用前核对数据和接收方;提交内容可能被外部服务或代理接收,覆盖范围取决于数据源可用性。

资料发布于 2026-10-27

可以用来做什么

  • 把扫描 PDF 转成可读的结构化 Markdown
  • 从带表格的表格文件里抽出带坐标的版式

什么时候用

  • 需要保留版式信息时
  • 要处理多种格式混在一起时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

把这份 PDF 解析成带表格的 Markdown
解析这份扫描件并给出图表坐标

月度数据趋势

累计下载4,762
2,9643,9304,8952026-03 · 累计下载 3,0972026-05 · 累计下载 3,7582026-06 · 累计下载 3,1192026-07 · 累计下载 3,3222026-08 · 累计下载 4,2292026-09 · 累计下载 4,76226-0326-09
星标5
3452026-03 · 星标 32026-05 · 星标 42026-06 · 星标 32026-07 · 星标 32026-08 · 星标 52026-09 · 星标 526-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-094,762—5
2026-084,229+27.3%5
2026-073,322+6.5%3
2026-063,119-17.0%3
2026-053,758—4
2026-033,097—3

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

4.5 KB · ClawHub v1.0.5
---
name: upstage-document-parse
description: "Parse documents (PDF, images, DOCX, PPTX, XLSX, HWP) into layout-aware markdown/HTML with tables, figures, headings, and bounding boxes using Upstage Document Parse API. Use when user asks to convert documents to markdown/HTML, preserve layout/tables, or analyze document structure — '이 PDF를 마크다운으로 변환해줘', '문서 구조 분석해줘', '표/레이아웃 그대로 추출해줘', 'parse this PDF to markdown'. DO NOT use for plain text-only extraction with word coordinates — use upstage-ocr instead. DO NOT use for schema-driven field extraction (specific values like invoice total) — use upstage-information-extraction instead."
homepage: https://console.upstage.ai/api/document-digitization/document-parsing
---

# Upstage Document Parse

Convert documents into structured HTML/Markdown. Recognizes layout elements such as tables, images, equations, and charts with bounding box coordinates.
展开全部(共 107 行)
## Quick Start

```python
import os
import requests

with open("report.pdf", "rb") as f:
    response = requests.post(
        "https://api.upstage.ai/v1/document-digitization",
        headers={"Authorization": f"Bearer {os.environ['UPSTAGE_API_KEY']}"},
        files={"document": f},
        data={"model": "document-parse", "output_formats": "['markdown']"}
    )
print(response.json()["content"]["markdown"])
```

**API Key**: Always use `os.environ["UPSTAGE_API_KEY"]`. Get your key at [console.upstage.ai](https://console.upstage.ai).

## Supported Formats

JPEG, PNG, BMP, PDF (up to 1000 pages with async), TIFF, HEIC, DOCX, PPTX, XLSX, HWP, HWPX

## Sync vs Async

| Mode | Endpoint | Max pages | Max file size | Notes |
|------|----------|-----------|---------------|-------|
| **Sync** | `/v1/document-digitization` | 100 | 50 MB | Result returned in response (5 min server timeout). Best for ≤ 100 pages and quick turnaround. |
| **Async** | `/v1/document-digitization/async` | 1000 | 50 MB | Returns `request_id`; processed in 10-page batches. Use when document exceeds sync limits or sync would time out. |

Decision rule:
- ≤ 100 pages **and** expected to finish within 5 min → sync.
- 100 pages, scanned/complex content, or batch jobs → async.

For async submit/poll workflow, see `references/async-workflow.md`.

## Key Parameters (Sync)

| Parameter | Default | Common Values |
|-----------|---------|---------------|
| `model` | required | `document-parse` |
| `output_formats` | `['html']` | `['markdown']`, `['html', 'markdown']` |
| `mode` | `standard` | `enhanced` (complex tables), `auto` |
| `ocr` | `auto` | `force` (always OCR scanned PDFs) |
| `coordinates` | `true` | `false` to omit bounding boxes |

For full parameter reference and curl variations (enhanced mode, force OCR, base64 table images, LangChain integration), see `references/sync-options.md`.

## Response Structure

```json
{
  "api": "2.0",
  "model": "document-parse-251217",
  "content": {
    "html": "<h1>...</h1>",
    "markdown": "# ...",
    "text": "..."
  },
  "elements": [
    {
      "id": 0,
      "category": "heading1",
      "content": { "html": "...", "markdown": "...", "text": "..." },
      "page": 1,
      "coordinates": [{"x": 0.06, "y": 0.05}, ...]
    }
  ],
  "usage": { "pages": 1 }
}
```

### Element Categories

`paragraph`, `heading1`, `heading2`, `heading3`, `list`, `table`, `figure`, `chart`, `equation`, `caption`, `header`, `footer`, `index`, `footnote`

## Output Files

- **Default**: write to `<system-temp>/<input-stem>.parsed.<ext>` where `<ext>` matches `output_formats` (`md` or `html`). Example: `/tmp/report.parsed.md`. Use `tempfile.gettempdir()` for cross-platform code.
- **Override**: if the user specifies an output path, use it.
- **Always print the resolved absolute path** in your response so the user can locate the file.

## Tips

- Use `mode=enhanced` for complex tables, charts, images
- Use `mode=auto` to let API decide per page
- Use async API for documents > 100 pages, > 50 MB, or when sync would exceed the 5-min timeout (async caps at 1000 pages)
- Use `ocr=force` for scanned PDFs or images
- `merge_multipage_tables=true` combines split tables (max 20 pages with enhanced mode)
- Standard documents process in ~3 seconds; sync API timeout is 5 minutes

## Detailed References

| File | Content |
|------|---------|
| `references/sync-options.md` | Full sync parameter reference, mode selection, curl variations, LangChain |
| `references/async-workflow.md` | Async submit/poll/status, Python polling pattern, retention rules |

「办公效率」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。