PDF to DOCX

👤 mzlzyca 📦 v0.4.0 ⭐ 4.4 ⬇️ 1.1K 下載
📄 辦公效率 免費 🔑 需 API Key

📖 技能介紹

PDF to DOCX

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

小蔥技能7w4.net有完整的技能分類。

⚠️ 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 <directory>.

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 <dir> 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

🤖 AI 評測

這是一個功能明確、質量不錯的 PDF 轉換工具 Skill。文件結構清晰,示例豐富,能滿足日常 PDF 轉 Word 的需求。優點是使用簡單、場景覆蓋全面;不足之處是英文文件對中文使用者不太友好,複雜版式和掃描件的轉換效果可能不夠理想,需要有一定技術基礎才能用好。

📊 多維度評分

適應性4.3
規範性4.3
有效性4.7
可靠性4.2
可信度4.8

📁 包含檔案 (2 個)

📄 SKILL.md 3.6 KB
📄 _meta.json 130 B