pdf-documents

Extract text, edit content, split and merge PDF documents.

Updated Oct 23, 2024
One-click install
npx skills add https://github.com/lenadlm/docker --skill pdf-documents
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf-documents
Source: https://github.com/lenadlm/docker/tree/main/hermes-skills/skills/productivity/pdf-documents
Command: npx skills add https://github.com/lenadlm/docker --skill pdf-documents

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pymupdf, nano-pdf, marker-pdf, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill addresses the need for efficient PDF management, offering capabilities to extract text, edit content, split and merge documents, and perform OCR on scanned documents.

Core Features & Use Cases

  • Text Extraction: Extract text from PDFs using powerful libraries like pymupdf and marker-pdf.
  • Content Editing: Edit text within PDFs using natural language commands with nano-pdf.
  • Document Manipulation: Split and merge PDF pages, and search for text across documents.
  • OCR: Convert scanned documents into editable text with high accuracy using marker-pdf.
  • Use Case: When you need to convert a scanned contract into an editable format or quickly extract information from a PDF report.

Quick Start

Extract text from a PDF using the pymupdf tool:

python3 -c "import pymupdf; doc = pymupdf.open('document.pdf'); for page in doc: print(page.get_text())"

Frequently Asked Questions about pdf-documents

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

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

To extract text from a PDF document, this Skill uses the pymupdf library to open files and iterate through pages, allowing you to retrieve and print text content directly from your Python scripts.

Can I perform OCR on scanned PDFs to make them editable?

Yes, you can perform OCR on scanned PDFs to convert them into editable text by utilizing the marker-pdf library, which handles high-accuracy text recognition for scanned documents.

What is the best way to edit content and merge PDF pages?

The best way to edit content and merge PDF pages is by using the nano-pdf library, which enables natural language commands for content editing alongside standard document manipulation features.

Does this PDF text extraction approach work for administrative workflows?

Yes, this PDF text extraction approach is explicitly designed for administrative, research, and educational workflows, supporting tasks like converting scanned contracts into editable formats.

Why use pymupdf vs other libraries for document manipulation?

You should use pymupdf for document manipulation because it is integrated alongside nano-pdf and marker-pdf to provide a comprehensive suite covering text extraction, editing, and OCR tasks.

Do I need nano-pdf to split and search across PDF documents?

You need nano-pdf specifically for natural language content editing, while the broader document manipulation tasks like splitting pages and searching text are handled across the integrated libraries.