# 2953 Fetch PDF 360ca3de

> fetch-pdf

- Skill: `tools-only/2953-fetch-pdf-360ca3de` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add tools-only/2953-fetch-pdf-360ca3de`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tools-only/2953-fetch-pdf-360ca3de/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: tools-only (https://skillmd.com/u/tools-only)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/tools-only/2953-fetch-pdf-360ca3de

---

# fetch-pdf

Download and extract text from a PDF URL using curl and a PDF text extraction tool.

## Usage

```bash
# Download PDF
curl -L -o document.pdf "URL"

# Extract all text from PDF (requires pdftotext from poppler-utils)
pdftotext document.pdf output.txt

# Or use Python's pdfplumber for better text extraction
python3 -c "import pdfplumber; pdf = pdfplumber.open('document.pdf'); text = '\n\n'.join([page.extract_text() for page in pdf.pages]); print(text)"
```

## Installation

### macOS
```bash
brew install poppler  # for pdftotext
# or
pip install pdfplumber  # for Python approach
```

### Linux
```bash
sudo apt-get install poppler-utils  # for pdftotext
# or
pip install pdfplumber  # for Python approach
```

## Example

```bash
# Download a PDF
curl -L -o document.pdf "https://example.gov/document.pdf"

# Extract all text
pdftotext document.pdf document.txt

# View the extracted text
cat document.txt
```

