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
累計下載
4762
星標
5
全站排名
#1,984
全站前 40% · 「辦公效率」前 41%
平台累計安裝累計下載星標評論
ClawHub ↗11835173-
SkillHub ↗67847625—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

識別表格、圖片、公式與圖表,並給出各自的邊界框座標;支援 JPEG、PNG、BMP、PDF、TIFF、HEIC、DOCX、PPTX、XLSX 及 HWP 等格式。文件短走同步介面,頁數多或批次任務走非同步,結果預設寫到系統臨時目錄。 使用前核對資料和接收方;提交內容可能由外部服務或代理接收,涵蓋範圍取決於資料來源的可用性。

資料釋出於 2026-10-27

可以用來做什麼

  • 把掃描 PDF 轉成可讀的結構化 Markdown
  • 從帶表格的表格檔案裡抽出帶座標的版式

什麼時候用

  • 需要保留版式資訊時
  • 要處理多種格式混在一起時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

把這份 PDF 解析成帶表格的 Markdown
解析這份掃描件並給出圖表座標

月度資料趨勢

累計下載4762
2964393048952026-03 · 累計下載 30972026-05 · 累計下載 37582026-06 · 累計下載 31192026-07 · 累計下載 33222026-08 · 累計下載 42292026-09 · 累計下載 476226-0326-09
星標5
3452026-03 · 星標 32026-05 · 星標 42026-06 · 星標 32026-07 · 星標 32026-08 · 星標 52026-09 · 星標 526-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-094762—5
2026-084229+27.3%5
2026-073322+6.5%3
2026-063119-17.0%3
2026-053758—4
2026-033097—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),按月更新。口徑說明見資料方法。