pdf-toolkit

Automate PDF extraction, OCR, creation, merging, and splitting with Bun/TypeScript scripts.

4|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/accolver/skill-maker --skill pdf-toolkit-accolver
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf-toolkit
Source: https://github.com/accolver/skill-maker/tree/main/pdf-toolkit
Command: npx skills add https://github.com/accolver/skill-maker --skill pdf-toolkit-accolver

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires mupdf, unpdf, pdf-lib, tesseract.js, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

pdf-toolkit provides a unified, script-driven way to process PDF documents end-to-end, including extraction, OCR, creation, merging, and splitting, so you can automate workflows without manual tooling.

Core Features & Use Cases

  • Extract text and structured data from PDFs (JSON summaries, per-page text)
  • OCR scanned PDFs with configurable DPI and language, including image extraction
  • Create PDFs from text, images, or markdown
  • Merge multiple PDFs with optional per-input page ranges and bookmarking
  • Split PDFs into pages, ranges, or fixed-size chunks for modular outputs

Quick Start

Use the pdf-toolkit to quickly extract text from a PDF and generate new documents as needed.

Frequently Asked Questions about pdf-toolkit

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

FAQPage Schema
How do I extract text and structured data from a PDF?

Extracting text and structured data from a PDF involves applying bundled Bun/TypeScript scripts that parse documents using mupdf and unpdf to produce structured JSON outputs and per-page text artifacts with robust metadata.

Can I perform OCR on a scanned PDF with configurable settings?

Performing OCR on a scanned PDF is supported through tesseract.js, allowing configurable DPI and language settings for accurate text recognition and image extraction from scanned document pages.

What is the best way to merge or split large PDF collections?

Merging or splitting large PDF collections is best handled through dedicated TypeScript scripts that assemble multiple PDFs with bookmarking and page ranges, or divide documents into fixed-size chunks for modular outputs.

How to create a PDF from text, images, or markdown?

Creating a PDF from text, images, or markdown is achieved by executing creation scripts that leverage pdf-lib to generate new documents from source content with page-level controls and metadata.

Does this PDF processing approach work with Bun and TypeScript?

This PDF processing approach works with Bun and TypeScript by orchestrating extraction, OCR, creation, merging, and splitting tasks through bundled Bun/TypeScript scripts to automate end-to-end document workflows.

What are the limitations of using tesseract.js for PDF OCR?

Limitations of using tesseract.js for PDF OCR depend on the configurable DPI and language settings applied, which directly influence the accuracy and processing speed of text recognition from scanned documents.