pdf-vision

Extract exact text and rendered PNG images from PDF pages.

5|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/lidge-jun/cli-jaw-skills --skill pdf-vision
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf-vision
Source: https://github.com/lidge-jun/cli-jaw-skills/tree/main/pdf-vision
Command: npx skills add https://github.com/lidge-jun/cli-jaw-skills --skill pdf-vision

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables AI agents to accurately read and analyze complex PDF documents, such as exams and reports, by combining precise text extraction with high-resolution image rendering to overcome OCR limitations and visual layout challenges.

Core Features & Use Cases

  • Hybrid Extraction: Extracts both exact text content and a rendered PNG image of each page.
  • Visual & Textual Analysis: Combines image analysis for layout and visual elements with extracted text for content accuracy.
  • Exam Solving: Ideal for solving visual exam questions where layout and precise wording are critical.
  • Legal Revision Check: Integrates with the search skill to check for recent legal revisions relevant to the PDF content.

Quick Start

Extract the image and text from page 3 of the PDF located at /path/to/document.pdf.

Frequently Asked Questions about pdf-vision

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

FAQPage Schema
How do I extract text and images from PDF for visual exam analysis?

To extract text and images from PDF for visual exam analysis, this Skill uses a hybrid approach. It simultaneously extracts exact text content and renders a high-resolution PNG image of the specified page, ensuring both layout and wording are captured accurately.

What is the best way to read complex PDF layouts without OCR errors?

The best way to read complex PDF layouts without OCR errors is combining direct text extraction with image rendering. This Skill bypasses OCR limitations by extracting exact text via pypdf while rendering page images with pypdfium2 to preserve visual structure.

Do I need pypdf and pypdfium2 to extract text and render PDF pages?

Yes, you need pypdf and pypdfium2 to extract text and render PDF pages. These two dependencies are strictly required for the hybrid extraction mechanism, with pypdf handling exact text content and pypdfium2 managing the high-resolution PNG image rendering.

Can I check for recent legal revisions in extracted PDF documents?

Yes, you can check for recent legal revisions in extracted PDF documents by integrating this Skill with a search Skill. After extracting the precise text from your legal documents, the content can be cross-referenced to identify and verify relevant legal updates.

Why does my PDF text extraction miss complex table layouts?

PDF text extraction misses complex table layouts because standard text-only parsing loses visual structure. This Skill solves this by rendering a PNG image of the page alongside text extraction, allowing AI agents to analyze the visual layout and tables simultaneously.