pdf-to-text

Convert PDF files into plain text using embedded-text extraction or OCR.

Updated Feb 9, 2026
One-click install
npx skills add https://github.com/RandyHaylor/enhanceclaude --skill pdf-to-text
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf-to-text
Source: https://github.com/RandyHaylor/enhanceclaude/tree/main/ai-tools/pdf-to-text
Command: npx skills add https://github.com/RandyHaylor/enhanceclaude --skill pdf-to-text

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill addresses the challenge of accessing and utilizing text content locked within PDF documents, whether they contain embedded text or are image-based scans requiring OCR.

Core Features & Use Cases

  • Intelligent Extraction: Automatically detects and handles PDFs with embedded text or those requiring Optical Character Recognition (OCR).
  • Quality Assurance: Includes a preliminary check on sample pages to evaluate extraction quality before full conversion, falling back to OCR if needed.
  • Versatile Output: Converts PDFs into clean, editable text files.
  • Use Case: Extracting the full text from a research paper or a scanned legal document for analysis or editing.

Quick Start

Convert the PDF file located at /path/to/document.pdf into a text file.

Frequently Asked Questions about pdf-to-text

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract text from a scanned PDF using OCR?

To extract text from a scanned PDF using OCR, this skill performs an initial quality assessment on sample pages and falls back to OCR tools like tesseract and ocrmypdf when necessary to convert the document into plain text.

Does PDF text extraction work on both embedded-text and image-based files?

PDF text extraction works on both embedded-text and image-based files by automatically detecting the document type and utilizing OCR fallback mechanisms to ensure accurate text extraction.

How do I convert a PDF document to a plain text file?

You can convert a PDF document to a plain text file by providing the file path to this skill, which processes the document and outputs a clean, editable text file using tools like pdftotext.

What tools are required for PDF to text conversion?

PDF to text conversion requires tools like pdftotext, ocrmypdf, tesseract, and pdftoppm to successfully process both embedded-text and scanned image-based PDF documents.

What is the best way to handle text extraction from a research paper PDF?

The best way to handle text extraction from a research paper PDF is using an intelligent extraction method that evaluates sample pages first, falling back to OCR only if the initial extraction quality is poor.

Why does my PDF text extraction return poor quality results?

PDF text extraction returns poor quality results when embedded text is insufficient, which is why this skill performs a preliminary check on sample pages to evaluate extraction quality and falls back to OCR if needed.