Skip to content
Back to skills

Pdfreader

ASecurity

Extract and read text from PDF files using PyMuPDF.

  • 21 stars
  • 0 votes
  • 0 copies
  • 10 views
  • Added September 7, 2026
developmentpythonshellsecuritydocumentation

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 2 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill pdfreader --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pdfreader?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pdfreader
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-pdfreader/badge)](https://www.skillsdirectory.com/skills/modbender-pdfreader)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: PDF Reader Skill for OpenClaw
description: Extract and read text from PDF files using PyMuPDF.
---

# PDF Reader Skill for OpenClaw

Extract and read text from PDF files using PyMuPDF.

## Installation

```powershell
pip install pymupdf
```

## Usage

```powershell
# Extract text (first 10 pages by default)
python pdf_reader.py "path/to/file.pdf" 10

# Output to JSON file (for reading)
python pdf_reader.py "path/to/file.pdf" 10 --output=extracted.json

# Read specific number of pages
python pdf_reader.py "path/to/file.pdf" 5
```

## Features

- Extracts text from any PDF
- Supports large files
- Outputs JSON for AI reading
- Handles encoding issues
- Shows metadata (title, author, etc.)

## Security Restrictions

For safety, the script enforces:
- **Input files:** Must be `.pdf` files within the current working directory
- **Output files:** Must be `.json` files within the current working directory
- No path traversal (`../`) allowed
- Files can only be read/written in the directory where the script runs

## Files

- `pdf_reader.py` - Main Python script
- `SKILL.md` - This documentation

Files in this skill

  • SKILL.md1.1 KB
  • pdf_reader.py4.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.