# Processing Files

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

- Skill: `majiayu000/processing-files` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/processing-files`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/processing-files/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/processing-files

---


# 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

```python
result = await pdf_to_markdown(file_path="/path/to/document.pdf")
# Returns: {"success": True, "data": {"markdown": "# Document Title\n\nContent..."}}
```

### With page limits

```python
# Extract first 5 pages only
result = await pdf_to_markdown(
    file_path="/path/to/document.pdf",
    max_pages=5
)
```

### Response format

```json
{
  "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

