← 返回
未分类 Key 中文

PDF to DOCX

Convert PDF documents to Word (.docx) format using MinerU. Transforms PDF files into editable Word documents preserving layout, text, tables, and formatting....
使用 MinerU 将 PDF 文档转换为 Word(.docx)格式,保持布局、文本、表格和格式,实现可编辑的 Word 文档。
mzlzyca
未分类 clawhub v0.4.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 638
下载
💾 2
安装
1
版本
#latest

概述

PDF to DOCX

Convert PDF files to editable Word (.docx) format using MinerU.

> ⚠️ Token required. flash-extract does not support DOCX output. You must configure a token via mineru-open-api auth before using this skill.

>

> ⚠️ Output to file required. DOCX is a binary format and cannot be streamed to stdout — you must always specify -o .

Install

npm install -g mineru-open-api
# or via Go (macOS/Linux):
go install github.com/opendatalab/MinerU-Ecosystem/cli/mineru-open-api@latest

Authentication

Token required — create one at https://mineru.net/apiManage/token:

mineru-open-api auth             # Interactive token setup
export MINERU_TOKEN="your-token" # Or via environment variable

Quick Start

# Convert PDF to DOCX (token required, -o is mandatory)
mineru-open-api extract report.pdf -f docx -o ./out/

# From URL
mineru-open-api extract https://example.com/report.pdf -f docx -o ./out/

# With language hint
mineru-open-api extract report.pdf -f docx --language en -o ./out/

# With VLM model for better layout accuracy (complex PDFs)
mineru-open-api extract report.pdf -f docx --model vlm -o ./out/

# Batch convert multiple PDFs
mineru-open-api extract *.pdf -f docx -o ./out/

Capabilities

  • Supported input: .pdf (local file or URL)
  • Output format: Word (.docx) via -f docx
  • Token required (mineru-open-api auth or MINERU_TOKEN env)
  • -o is mandatory — DOCX cannot stream to stdout
  • Language hint with --language (default: ch, use en for English)
  • Page range with --pages (e.g. 1-10)
  • Batch mode supported: extract *.pdf -f docx -o ./out/

Notes

  • flash-extract does NOT support DOCX output — always use extract with token
  • DOCX output cannot be streamed to stdout; -o flag is required
  • Use --model vlm for PDFs with complex layouts, tables, or mixed content
  • Use --model pipeline if you need guaranteed fidelity with no hallucination risk
  • Output directory will be created if it does not exist
  • All progress/status messages go to stderr
  • MinerU is open-source by OpenDataLab (Shanghai AI Lab): https://github.com/opendatalab/MinerU

版本历史

共 1 个版本

  • v0.4.0 当前
    2026-05-03 05:22 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Extract Tables From Pdf

mzlzyca
使用MinerU表格检测引擎从PDF文档中提取表格。能够从原生PDF和扫描PDF中识别并提取结构化表格数据。
★ 0 📥 672

Doc Parse

mzlzyca
使用MinerU从Word文档(.doc、.docx)中解析提取结构化内容,转换为格式规范的Markdown。保留完整文档层级结构(标题、段落等)
★ 0 📥 836

Ocr Pro

mzlzyca
使用MinerU实现专业级PDF和图像OCR。先进文本识别,搭载VLM(视觉语言模型),支持复杂排版、混合内容...
★ 0 📥 786