pdf-reader

Extract text and metadata from PDF files using command-line tools.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/theowenyoung/nanoclaw --skill pdf-reader-theowenyoung
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf-reader
Source: https://github.com/theowenyoung/nanoclaw/tree/main/.claude/skills/add-pdf-reader/add/container/skills/pdf-reader
Command: npx skills add https://github.com/theowenyoung/nanoclaw --skill pdf-reader-theowenyoung

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Many documents, reports, contracts, and spreadsheets arrive as PDFs that are hard to search, summarize, or ingest; this skill removes that friction by extracting readable text and metadata from PDFs so content can be analyzed, summarized, or processed automatically.

Core Features & Use Cases

  • Extract full text from local PDF files with optional layout preservation for tables and multi-column documents.
  • Fetch remote PDFs by URL, verify the PDF header, and optionally save a local copy before extraction.
  • Show metadata and file size, and list all PDFs in a directory tree with page counts for quick auditing.
  • Use case: read a contract attachment from WhatsApp, inspect metadata, and extract the executive summary pages for review.

Quick Start

Use pdf-reader to extract all text from attachments/contract.pdf while preserving layout.

Frequently Asked Questions about pdf-reader

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

FAQPage Schema
How do I extract text from a PDF while preserving the original layout?

You can extract text from PDF documents while preserving the original layout using pdftotext-style layout options, which maintains the reading order for tables and multi-column files. This ensures accurate downstream analysis.

Can I extract text and metadata from a PDF downloaded via a URL?

Yes, you can fetch remote PDFs by URL, verify the PDF header, and optionally save a local copy before extracting text. The process also surfaces pdfinfo metadata and file size for each downloaded document.

How do I extract specific page ranges from a PDF document?

PDF text extraction supports page-range options, allowing you to target specific pages like an executive summary. This is useful for reviewing only relevant sections of large contracts or reports without processing the entire file.

What is the best way to process PDF attachments from messaging apps?

You can process PDF attachments from messaging apps by applying text extraction directly to local files. The tool inspects file metadata and extracts readable text, making attachments searchable and ready for automated summarization.

How do I audit PDF metadata and page counts across a directory?

You can list all PDFs in a directory tree with their respective page counts for quick auditing. This process surfaces pdfinfo metadata and file sizes, providing a clear overview of your document inventory.

Does PDF text extraction work with scanned documents or images?

PDF text extraction using command-line tools like pdftotext focuses on extracting embedded text and metadata. It does not perform OCR on scanned images, so documents must contain selectable text to be processed successfully.