pdf

Extract text and tables from PDFs using pypdf and pdfplumber.

Updated May 19, 2026
One-click install
npx skills add https://github.com/anilveersingh1308/copilot-skills --skill pdf-anilveersingh1308
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/anilveersingh1308/copilot-skills/tree/main/.github/skills/pdf
Command: npx skills add https://github.com/anilveersingh1308/copilot-skills --skill pdf-anilveersingh1308

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill removes the repetitive burden of manually working through common PDF tasks by providing a practical, implementation-ready workflow for extraction and transformations.

Core Features & Use Cases

  • Extract text and metadata from PDFs and pull text/table data when layout matters (including scanned documents via OCR).
  • Transform PDFs by merging/splitting pages, rotating, watermarking, protecting with passwords, and encrypting/decrypting.
  • Handle PDF forms by identifying fillable fields or using coordinate-based annotations for non-fillable forms, with validation guardrails before producing the final PDF.

Quick Start

Tell me what PDF you have and what you want (e.g., extract text, merge pages, rotate, watermark, or fill a form), and I will provide the exact Python/CLI commands and workflow to generate the output PDF.

Frequently Asked Questions about pdf

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

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

Extract text and tables from scanned PDFs by applying optional OCR alongside pypdf and pdfplumber. This workflow reads native text first, then invokes poppler tools and OCR to extract missing content when layout matters, yielding usable text and structured table data outputs.

What's the best way to merge, split, and watermark PDF pages in Python?

Merge, split, rotate, and watermark PDF pages by executing Python and CLI commands via pypdf and reportlab. This workflow transforms individual pages, applies overlay watermarks, and generates a consolidated or partitioned PDF document matching your specified page ranges.

How do I fill fillable PDF forms and add annotations to non-fillable documents?

Fill PDF forms by identifying fillable fields using pypdf or applying coordinate-based annotations for non-fillable documents. This workflow applies validation guardrails before producing the final PDF, ensuring form completion accuracy across common Python toolchains.

Can I protect and encrypt PDFs with passwords using Python?

Protect and encrypt PDFs with passwords using pypdf within this workflow. You can apply password protection and encryption or decryption to secure your PDF documents, generating access-controlled output files directly through Python and CLI commands.

Does this workflow support creating new PDFs from scratch with reportlab?

Create new PDFs from scratch using reportlab as part of this document processing workflow. The toolchain leverages reportlab for PDF creation alongside pypdf for reading and writing, enabling you to generate custom PDF documents programmatically.

Why does text extraction fail on my PDF without OCR?

Text extraction fails on scanned PDFs without native text layers because pypdf and pdfplumber cannot read image-based content. You must apply optional OCR and poppler tools to extract text when native text is missing, converting images to usable string data.