hive.pdf

Read, create, merge, split, encrypt, and OCR PDF files using Python libraries and command-line tools.

11.0k|5.7k|Updated Jan 12, 2026
One-click install
npx skills add https://github.com/aden-hive/hive --skill hive-pdf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hive.pdf
Source: https://github.com/aden-hive/hive/tree/main/core/framework/skills/_default_skills/pdf
Command: npx skills add https://github.com/aden-hive/hive --skill hive-pdf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pypdf, pdfplumber, reportlab, pypdfium2, pytesseract, pdf2image, pandas, and includes references (resource) components.

What problem does it solve?

Working with PDF files programmatically requires choosing between many libraries and tools, each with different strengths for extraction, creation, and manipulation tasks. This Skill consolidates proven code patterns for the full range of PDF operations so you can process documents without researching APIs from scratch.

Core Features & Use Cases

  • Text and Table Extraction: Extract text, tables, and metadata from PDFs using pypdf and pdfplumber, with support for coordinate-based extraction and pandas DataFrame conversion.
  • PDF Creation and Modification: Create new PDFs with reportlab, merge and split documents, rotate pages, add watermarks, and apply password encryption.
  • OCR and Command-Line Operations: OCR scanned PDFs with pytesseract and pdf2image, plus fast batch operations using poppler-utils (pdftotext, pdfimages) and qpdf.
  • Use Case: You receive a batch of scanned vendor invoices as PDFs. Use this Skill to OCR each page, extract the line-item tables with pdfplumber, and export the combined results to an Excel spreadsheet.

Quick Start

Extract all text and tables from the attached report.pdf and save the tables to an Excel file.

Frequently Asked Questions about hive.pdf

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

FAQPage Schema
How do I extract tables from a PDF in Python?

Use pdfplumber's page.extract_tables() method to detect and extract tables from each PDF page. The results can be converted into pandas DataFrames and combined across pages, then exported to Excel with to_excel().

How do I merge or split PDF files with Python?

Use pypdf's PdfWriter and PdfReader classes: add pages from multiple readers to one writer to merge, or write each page to a separate file to split. The qpdf command-line tool also handles merging and page-range splitting.

How do I extract text from a scanned PDF?

Scanned PDFs contain images rather than text, so use pdf2image to convert pages to images and pytesseract to OCR each image into text. Standard parsers like pypdf cannot read text from scanned documents directly.

What is the difference between pypdf and pdfplumber?

pypdf handles structural operations like merging, splitting, rotating, metadata, and encryption. pdfplumber specializes in content extraction, providing text with layout coordinates and table detection that pypdf does not offer.

Why do subscript characters render as black boxes in reportlab PDFs?

ReportLab's built-in fonts lack Unicode subscript and superscript glyphs, so characters like H₂O render as solid boxes. Use the <sub> and <super> XML markup tags inside Paragraph objects instead.

How do I password-protect or decrypt a PDF?

Use pypdf's writer.encrypt() with user and owner passwords to protect a PDF, or qpdf with --encrypt for command-line encryption. To decrypt, call reader.decrypt(password) in pypdf or use qpdf --decrypt with the password.