Pdf Extract

Extract text from PDF files for LLM processing

Xejrax

@xejrax

What This Skill Does

Extracts plain text from PDF files using the pdftotext command-line tool. Supports extracting all text or specific page ranges from a PDF document.

Replaces manually copying text from PDFs or using online converters by providing a fast, local command-line extraction tool.

When to Use It

  • Extract text from a PDF to feed into an LLM for summarization or analysis
  • Convert a PDF report into plain text for further processing in a script
  • Pull text from specific pages of a PDF document
  • Prepare PDF content for indexing or search in a text-based system
  • Batch extract text from multiple PDF files in a directory

Install

$ openclaw skills install @xejrax/pdf-extract

PDF Extract

Extract text from PDF files for LLM processing. Uses pdftotext from the poppler-utils package to convert PDF documents into plain text.

Commands

# Extract all text from a PDF
pdf-extract "document.pdf"

# Extract text from specific pages
pdf-extract "document.pdf" --pages 1-5

Install

sudo dnf install poppler-utils

Top skills in this category