Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计通过

nano-pdfNano PDF 文档

Agent Skill

nano-pdf 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,212

周安装

50

GitHub Stars

4

下载量

396
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:nano-pdf(Nano PDF 文档)
来源仓库:https://github.com/alphaonedev/openclaw-graph
仓库路径:skills/nano-pdf
安装命令:
npx skills add https://github.com/alphaonedev/openclaw-graph --skill nano-pdf
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill nano-pdf

简介

nano-pdf 提供 PDF 处理工具,包括文本提取、数据挖掘、表单填写、文件操作及 OCR 集成,用于高效处理文档工作流。

  • 适用于数据管道、文档自动化脚本或需要从扫描件中提取结构化信息的场景。
  • 支持文本提取、表单提交、文件合并拆分等核心能力,可结合 OCR 服务处理非文本 PDF。
  • 安装方式为 GitHub 仓库,使用前需确认是否涉及文件读写和网络请求权限。
  • nano-pdf 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

nano-pdf

Purpose

This skill provides tools for PDF processing, including text extraction, mining, form filling, manipulation, and OCR integration, to handle document workflows efficiently.

When to Use

Use this skill for tasks involving PDF data extraction (e.g., from scanned documents), text analysis in reports, automating form submissions, merging/splitting files, or applying OCR to non-text PDFs. Apply it in data pipelines, document automation scripts, or when integrating with OCR services for unstructured data.

Key Capabilities

  • Text extraction: Pulls plain text or structured data from PDFs, supporting encrypted files with passwords; uses OCR via Tesseract integration for image-based PDFs.
  • Text mining: Analyzes extracted text for keywords, sentiment, or patterns; e.g., counts occurrences of phrases in a document.
  • Form filling: Populates interactive PDF forms with JSON data; supports flattening forms to static PDFs.
  • Manipulation: Merges, splits, rotates, or watermarks PDFs; handles up to 500-page documents efficiently.
  • OCR integration: Converts scanned PDFs to searchable text using external APIs; requires Tesseract or similar engine configuration.

Usage Patterns

Invoke via CLI for quick scripts or API for server-side integration. For batch processing, chain commands in a shell script; for web apps, use API calls in loops. Always specify input/output paths explicitly. Pattern: Extract text first, then mine or manipulate as needed. For OCR-heavy tasks, preprocess images before PDF operations.

Common Commands/API

CLI commands use nano-pdf binary; API endpoints are under https://api.opencclaw.com/nano-pdf/. Authentication requires $NANO_PDF_API_KEY environment variable.

  • Extract text: nano-pdf extract --file input.pdf --output text.txt --ocr true (adds OCR if text is not selectable).
  • Mine text: nano-pdf mine --input text.txt --keywords "AI,robot" --output results.json (outputs keyword frequencies).
  • Fill form: nano-pdf fill --template form.pdf --data '{"field1": "value"}' --output filled.pdf.
  • Manipulate PDF: nano-pdf merge --files file1.pdf file2.pdf --output combined.pdf.
  • API endpoint for extraction: POST /extract with body {"file": "base64encoded_content", "ocr": true} and header Authorization: Bearer $NANO_PDF_API_KEY.
  • Code snippet (Python): import requests response = requests.post('https://api.opencclaw.com/nano-pdf/extract', headers={'Authorization': f'Bearer {os.environ["NANO_PDF_API_KEY"]}'}, json={'file': 'base64data'}) print(response.json()['text'])
  • Config format: JSON for API bodies, e.g., {"file": "path", "options": {"ocr_engine": "tesseract", "language": "en"}}; CLI uses flag-based configs like --config config.json.

Integration Notes

Integrate by setting $NANO_PDF_API_KEY for authenticated requests; for local use, install via pip install nano-pdf and import as a module. Combine with other tools: pipe CLI output to NLP libraries for mining, or use in Node.js via HTTP requests. For OCR, ensure Tesseract is installed and configured in your environment path. Test integrations in a sandbox to verify API rate limits (e.g., 100 requests/min).

Error Handling

Check for common errors like file not found (exit code 404), invalid API keys (401), or OCR failures (e.g., no Tesseract installed). Use try-except in code:

try:
    result = nano_pdf.extract('input.pdf')
except FileNotFoundError:
    print("Error: File does not exist.")
except Exception as e:
    print(f"API Error: {e} - Check $NANO_PDF_API_KEY.")

For CLI, parse stderr output; retry transient errors (e.g., network issues) with exponential backoff. Always validate inputs, like ensuring PDFs are not corrupted before processing.

Example 1: Extract and Mine Text from a PDF

To extract text from a scanned invoice PDF and mine for product names:

  1. Run: nano-pdf extract --file invoice.pdf --output invoice_text.txt --ocr true
  2. Then: nano-pdf mine --input invoice_text.txt --keywords "product" --output analysis.json This produces a JSON with keyword occurrences for further processing.

Example 2: Fill and Manipulate a Form PDF

To fill a job application form and merge it with a cover letter:

  1. Prepare data in JSON: {"name": "John Doe", "position": "Engineer"}
  2. Execute: nano-pdf fill --template application.pdf --data application_data.json --output filled_app.pdf
  3. Merge: nano-pdf merge --files filled_app.pdf cover_letter.pdf --output final_packet.pdf Output is a single PDF ready for submission.

Graph Relationships

  • Related to: "ocr-tool" (for enhanced OCR capabilities), "document-parser" (for broader file type support), "text-analyzer" (for advanced mining integrations).
  • Clusters: Connected via "community" cluster to skills like "data-extraction" and "automation-utils".

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.62%
按下载量换算141

Claude

31.76%
按下载量换算126

Cursor

19.53%
按下载量换算77

Gemini CLI

10.49%
按下载量换算42

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills