pdf-parser

pdf-parser is a skill for Claude Code, Codex from PKUfudawei/arxiv-skills. It costs 12 tokens per session (1,074 once invoked), scanned A, original, MIT.

A PDF-to-Markdown converter for research papers. Markdown is plain text with simple formatting that works well in code and documentation.

In plain words
What is it for?
Use it to extract the text of scientific papers for editing, searching, or further processing.
Why use it?
It turns paper PDFs into editable text, avoiding manual copying and formatting.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/user/papers/*.pdf.

Good fit Use it to extract the text of scientific papers for editing, searching, or further processing.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pdf-parser

README.md
[![agentmods](https://agentmods.dev/badge/skills/pkufudawei/arxiv-skills/pdf-parser/github.svg)](https://agentmods.dev/skills/pkufudawei/arxiv-skills/pdf-parser)
Your own site
<a href="https://agentmods.dev/skills/pkufudawei/arxiv-skills/pdf-parser"><img src="https://agentmods.dev/badge/skills/pkufudawei/arxiv-skills/pdf-parser/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pdf-parser

Your own site · 80×15
<a href="https://agentmods.dev/skills/pkufudawei/arxiv-skills/pdf-parser"><img src="https://agentmods.dev/badge/skills/pkufudawei/arxiv-skills/pdf-parser.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,074 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00012 $0.01074
Opus 5 $0.00006 $0.00537
Sonnet 5 $0.00002 $0.00215
Haiku 4.5 $0.00001 $0.00107

Measured 6d ago against content hash 837c164fb1f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

pdf-parser scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/paddleOCR.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/pdf-parser/SKILL.md · 152 lines

How it starts

The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.

pdf-parser

Convert PDF papers to markdown format using PaddleOCR-VL-1.5 API, with automatic image extraction and layout preservation.

Overview

This skill uses PaddleOCR's cloud API to convert PDF academic papers into markdown format. It preserves document structure, extracts text content, and downloads embedded images.

Workflow

PDF Files → PaddleOCR API → JSONL Result → Markdown + Images

Processing Steps

  1. Submit Job: Upload each PDF to PaddleOCR API
  2. Wait for Result: Poll job status until completion
  3. Download & Merge: Fetch JSONL result, extract markdown text and images
  4. Save Output: Write combined markdown file with embedded image references

Setup

1. Obtain PaddleOCR API Token

Get your API token from PaddleOCR AI Studio and set the environment variable:

export PADDLE_TOKEN="your_token_here"

Or add to ~/.bashrc or .env file for persistent configuration:

echo 'export PADDLE_TOKEN="your_token_here"' >> ~/.bashrc
source ~/.bashrc

Usage

Basic Usage

python3 skills/pdf-parser/scripts/paddleOCR.py -f "path/to/pdfs/*.pdf"

Process Multiple Directories

# Process all PDFs in arxiv subdirectories
python3 skills/pdf-parser/scripts/paddleOCR.py -f "arxiv/*/*.pdf"

# Process specific directory
python3 skills/pdf-parser/scripts/paddleOCR.py -f "/home/user/papers/*.pdf"

Args

Argument Short Default Description
--files -f (required) Glob pattern(s) for PDF files to process (e.g. "arxiv/*/*.pdf")
--workers 5 Maximum parallel PDF processing threads

Output Format

File Naming

  • Input: paper_123.pdf
  • Output: paper_123.md (same directory as input)

Markdown Structure

  • Text content extracted and preserved in reading order
  • Images saved as separate files with references in markdown
  • Layout structure maintained (headers, paragraphs, lists)

Read the full file on GitHub · 152 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago Changed 837c164fb1f7
  2. 10d ago First seen · 152 lines · 12 tokens per session scan A e72d3b0aff58

Subscribe to this mod's changes

pdf-parser is a skill published in the GitHub repository PKUfudawei/arxiv-skills (21 stars, last pushed 6d ago), licensed MIT. It adds 12 tokens to every session and 1,074 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories