PDF Context Extractor

SkillFiles & storage

Extracts text from PDF files using pypdf 5.x. Use when you need to read PDF documents to understand background context, column definitions, and scoring rules for data analysis tasks.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the PDF Context Extractor skill

What this skill tells your AI

The instructions your AI receives, as published by openlair/openskill in tasks-evolved/financial-modeling-qa/environment/skills/evo-pdf-context-extractor/SKILL.md and read by ahel’s review.

Extracts text content from PDF files using pypdf 5.x (PdfReader API).

Usage

import sys
sys.path.insert(0, '/app/environment/skills/evo-pdf-context-extractor/scripts')
from utils import extract_pdf_text, get_all_pages_text

# Get all text from a PDF
text = extract_pdf_text('/path/to/file.pdf')

# Get text as list of pages
pages = get_all_pages_text('/path/to/file.pdf')

Key Functions

  • extract_pdf_text(filepath) - Returns all text from PDF as single string
  • get_all_pages_text(filepath) - Returns list of strings, one per page

Technical Notes

  • Uses from pypdf import PdfReader (NOT PyPDF2)
  • Uses page.extract_text() method
  • Handles malformed PDFs gracefully

Signals

GitHub stars
89
Forks
4
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
evo-pdf-context-extractor
Source
github.com/openlair/openskill