# PDF Text — extract the text layer from a PDF

> Extract selectable text from a PDF with pdftotext — use when an agent needs the text layer of a PDF file.

PDF Text — extract the text layer from a PDF is a free AI agent skill on Agensi by Orbital Desk. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Orbital Desk](https://www.agensi.io/creators/orbital-desk)
- Uses: 1
- Version: 1.0
- Last updated: 2026-10-12
- Security: scan passed (2026-10-13); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/pdf-text-extract-the-text-layer-from-a-pdf
- Tags: data, developer-tools

## About this skill

This skill pulls the text layer out of a PDF with Poppler's `pdftotext` and returns plain text, either on stdout or in a file you name. It covers whole documents, page ranges (numbered from 1, `-f` and `-l` inclusive), and multi-column pages, where `-layout` keeps the columns where they were on the page and `-nopgbrk` drops the form feeds between pages.

The one requirement is Poppler utils — `poppler-utils` on Debian/Ubuntu, `poppler` via Homebrew on macOS. `pdftotext -h` lists the flags for the build you have, which is the authority the skill defers to.

The limits are stated plainly, because they define the tool. `pdftotext` reads the embedded text layer only: a scanned page with no text layer produces an empty result, and OCR is a different tool. The skill's check is simple — a text layer comes back as words; an empty file means the pages are images, and the job stops there instead of guessing.

An encrypted file makes `pdftotext` exit with an error; the skill's rule is to stop and ask the user rather than guess passwords. `-raw` mode is noted as no longer recommended; `-layout` is the right default for anything multi-column.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the PDF Text — extract the text layer from a PDF skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does PDF Text — extract the text layer from a PDF do?

Extract selectable text from a PDF with pdftotext — use when an agent needs the text layer of a PDF file.

### Which AI agents support PDF Text — extract the text layer from a PDF?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use PDF Text — extract the text layer from a PDF?

Connect your AI agent to Agensi through MCP, then ask it to use PDF Text — extract the text layer from a PDF on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
