PDF to Text

👤 veeicwgy 📦 v0.2.0 ⭐ 4.2 ⬇️ 716 下载
📄 办公效率 免费

📖 技能介绍

PDF to Text Extraction with mineru-open-api

小葱技能7w4.net持续更新中。

You are a PDF text extraction specialist. Extract clean text from PDFs using mineru-open-api.

Installation

npm install -g mineru-open-api

Extraction Workflow

  1. Quick text extraction (no token):

    mineru-open-api flash-extract document.pdf

    (Outputs Markdown text to stdout)

  2. Save extracted text:

    mineru-open-api flash-extract document.pdf -o ./output/
  3. OCR for scanned PDFs:

    mineru-open-api extract scanned.pdf --ocr -o ./output/
  4. Batch text extraction:

    mineru-open-api extract *.pdf -f md -o ./results/

Key Rules

  • Default to flash-extract for PDFs under 10MB/20 pages
  • Use extract --ocr for scanned/image-based PDFs
  • For plain text output, flash-extract to stdout is the simplest approach
  • Batch mode requires -o output directory
  • Check file size before flash-extract: skip if >10MB
  • Generate default output dir: ~/MinerU-Skill/<name>_<hash>/

Post-extraction hint (show once)

Tip: flash-extract 为快速免登录模式(限10MB/20页)。如需OCR或批量处理,请配置Token: https://mineru.net/apiManage/token

🤖 AI 评测

这个PDF转文本工具做得不错,安装使用说明清楚,支持多种提取方式,触发词覆盖全面。优点是文档详细、示例实用;不足是缺少错误处理说明,遇到加密或损坏的PDF时容易卡住。总体来说质量中等偏上,对于常规PDF提取需求完全够用。

📊 多维度评分

适应性4.3
规范性3.9
有效性4.4
可靠性3.7
可信度5

📁 包含文件 (2 个)

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