processing-files

binome-dev 的头像作者 binome-dev

将PDF文件转换为markdown文本。用于用户想要从PDF中提取文本、将PDF转换为可读格式或处理PDF文档时。

📖 中文导读:将PDF文件转换为markdown文本。用于用户想要从PDF中提取文本、将PDF转换为可读格式或处理PDF文档时。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: processing-files description: Converts PDF files to markdown text. Use when the user wants to extract text from PDFs, convert PDFs to readable format, or process PDF documents.

File Processing Tools

Tools for converting and processing file formats.

PDF to Markdown

Extract text from PDF files and convert to markdown format.

Basic usage

result = await pdf_to_markdown(file_path="/path/to/document.pdf")
# Returns: {"success": True, "data": {"markdown": "# Document Title\n\nContent..."}}

With page limits

# Extract first 5 pages only
result = await pdf_to_markdown(
    file_path="/path/to/document.pdf",
    max_pages=5
)

Response format

{
  "success": true,
  "data": {
    "markdown": "extracted markdown content",
    "page_count": 10,
    "file_path": "/path/to/document.pdf"
  }
}

Requirements

Requires pymupdf package for PDF processing.

When to use

  • Converting PDF reports to readable text
  • Extracting content from PDF documents
  • Processing PDF files for further analysis