PDF Parsing Utils

Extracting structured text tables and content blocks from PDF files using PyPDF or pdfplumber.

Lord1Egypt Updated 2 repo stars

File contents

Pdf Parsing Utils

Overview

PDF parsing translates visual PDF files into machine-readable text and clean data structures.

When to Use This Skill

Use to parse text parameters out of uploaded financial statements or text reports.

Quick Start (with runnable code examples)

import pypdf

def extract_pdf_text(pdf_path):
    reader = pypdf.PdfReader(pdf_path)
    text = ""
    for page in reader.pages:
        text += page.extract_text() + "\n"
    return text

Advanced Usage

Extract tabular tables using pdfplumber, extract metadata headers, decrypt passwords, and manage page rotations.

Key References

Dependencies

  • pypdf>=3.0.0

Lord1Egypt/ai-skillforge/tree/main/skills/gemini/pdf-parsing-utils commit 4f3b7bf985

Frequently asked questions

npx skillmds@latest add lord1egypt/pdf-parsing-utils