pdf

Create, inspect, extract, merge, split, rotate, and render PDF files with local open-source tools.

55|41|Updated Aug 9, 2026
One-click install
npx skills add https://github.com/Rylaispirit/rylai-codex-hermes-skills --skill pdf-rylaispirit
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/Rylaispirit/rylai-codex-hermes-skills/tree/main/skills/pdf
Command: npx skills add https://github.com/Rylaispirit/rylai-codex-hermes-skills --skill pdf-rylaispirit

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Working with PDF files often requires juggling multiple tools for inspection, text extraction, merging, splitting, rotation, and rendering, and many online services force you to upload sensitive documents. This Skill performs all common PDF operations locally with open-source Python libraries, keeping documents on your machine and verifying every output. ## Core Features & Use Cases - Inspection and Extraction: Print page count, size, encryption status, and metadata, then extract text from selected page ranges using pypdf or pdfplumber. - Editing Operations: Merge multiple PDFs in order, split selected pages into individual files, and rotate chosen pages by 90, 180, or 270 degrees. - Visual Verification: Render pages to PNG with pypdfium2 or Poppler pdftoppm to confirm layout, clipping, and rotation results. - Use Case: You receive a 200-page scanned contract bundle and need pages 10-25 as separate files with text extracted for review. Run the split and extract commands, then render sample pages to confirm the output is correct. ## Quick Start Use the pdf skill to inspect the attached report.pdf, extract the text from pages 1 through 5, and save it to a UTF-8 text file.

Frequently Asked Questions about pdf

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

FAQPage Schema
How do I extract text from specific PDF pages in Python?▼

Use the extract command with a one-based page selection such as 1-3,7. The script tries pdfplumber first for higher-quality text and falls back to pypdf, writing the result to a UTF-8 text file with page markers.

How do I merge multiple PDF files into one?▼

Run the merge command with the output path followed by the input files in the desired order. The script uses pypdf's PdfWriter to append every page from each source, and the output path must differ from all inputs.

Can I process an encrypted or password-protected PDF?▼

Yes, pass the user-supplied password with the --password flag on info, extract, split, or rotate commands. The script decrypts with pypdf and reports an error if the password is rejected; it never invents or stores passwords.

Why is extracted text empty for some PDF pages?▼

Empty extraction usually means the pages are scanned images without a text layer. The skill identifies these pages and recommends running a local OCR engine with a stated tool and language model while keeping the original PDF unchanged.

What tools render PDF pages to PNG images?▼

The render command uses pypdfium2 when installed and falls back to Poppler's pdftoppm otherwise. It writes one PNG per page at a configurable DPI, defaulting to 144, and errors if neither renderer is available.