pypdf

Extract and manipulate text, tables, and images from PDFs using PyMuPDF.

17|3|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/ErixWong/touwaka-ai-mate --skill pypdf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pypdf
Source: https://github.com/ErixWong/touwaka-ai-mate/tree/main/data/skills/pypdf
Command: npx skills add https://github.com/ErixWong/touwaka-ai-mate --skill pypdf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires PyMuPDF, and includes scripts (resource) components.

What problem does it solve?

This Skill solves the problem of manually processing PDF files by automating tasks like reading, extracting data, and manipulating PDFs, saving valuable time and effort.

Core Features & Use Cases

  • PDF Metadata Extraction: Retrieve metadata from PDF files, including title, author, and page count.
  • Text Extraction: Extract text from any PDF, with options to specify page ranges.
  • Table Extraction: Extract tables from PDFs, making data analysis easier.
  • Image Extraction: Extract images from PDFs, with options to specify image sizes.
  • PDF Rendering: Render PDF pages as images, with optional scaling and output formatting.
  • Markdown Conversion: Convert PDFs to Markdown format, suitable for documentation and notes.
  • PDF Manipulation: Create, merge, split, rotate, encrypt, decrypt, and add watermarks to PDFs.
  • Use Case: If you receive a PDF document and need to extract certain data or images from it, this Skill can automate the process and save you time.

Quick Start

Use the pypdf skill to extract all images from the attached file 'report.pdf' and save them to the 'extracted_images' directory.

Frequently Asked Questions about pypdf

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

FAQPage Schema
How do I extract text from a PDF document using Python?

To extract text from a PDF, you can process the binary PDF streams using Python's PyMuPDF library, which allows you to retrieve text content from specific pages or entire documents efficiently.

Can I extract images and tables from PDF files for data analysis?

Yes, you can extract images and tables from PDF files using Python's PyMuPDF library. This allows you to isolate specific image sizes and tabular data, streamlining your document processing and data analysis workflows.

Does PyMuPDF support converting PDFs to Markdown format?

PyMuPDF supports converting PDFs to Markdown format through Python scripts. This conversion transforms your static PDF content into editable text, making it suitable for documentation and note-taking applications.

What is the best way to manipulate PDF metadata and pages in Python?

The best way to manipulate PDF metadata and pages in Python is using the PyMuPDF library to process binary streams. You can retrieve document metadata, merge, split, rotate, encrypt, decrypt, or add watermarks to pages.

Do I need PyMuPDF installed to render PDF pages as images?

Yes, you need PyMuPDF installed to render PDF pages as images. The Skill requires this specific dependency to process binary PDF streams and perform page rendering with optional scaling and output formatting.

Can I use Python to encrypt or decrypt PDF documents?

You can use Python to encrypt or decrypt PDF documents by leveraging the PyMuPDF library. This allows you to manipulate binary PDF streams directly, adding security layers like passwords and watermarks to your files.