pdf-tools

Create, edit, and render PDFs client-side with pdf-lib and pdfjs-dist.

Updated Mar 24, 2026
One-click install
npx skills add https://github.com/trusted-american/marketplace --skill pdf-tools-trusted-american
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf-tools
Source: https://github.com/trusted-american/marketplace/tree/main/plugins/a3-plugin/skills/pdf-tools
Command: npx skills add https://github.com/trusted-american/marketplace --skill pdf-tools-trusted-american

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PDF workflows often require separate tools for generation, modification, and rendering, leading to fragmentation and inefficiency. This Skill unifies creation, editing, and viewing of PDFs using pdf-lib and pdfjs-dist to streamline document workflows.

Core Features & Use Cases

  • PDF generation and modification with pdf-lib (text, images, shapes, and form filling)
  • Client-side rendering and previewing of PDFs with pdfjs-dist
  • Form handling, template merging, and data extraction for dynamic documents
  • Use Case: generate filled forms from templates and render a live preview in a web app

Quick Start

Create a new PDF from a template, fill fields, and render a preview in the browser.

Frequently Asked Questions about pdf-tools

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

FAQPage Schema
How do I fill PDF forms and render a preview in my web app?

To fill PDF forms and render a preview, you can automate client-side processing using pdf-lib for form filling and pdfjs-dist for on-device rendering. This approach unifies template merging and live previews directly in web apps.

Can I generate PDFs and embed custom fonts on the client side?

Yes, you can generate PDFs and embed custom fonts entirely on the client side using pdf-lib. This Skill supports creating documents with text, images, and shapes without requiring server-side processing.

What is the best way to merge PDF templates with dynamic data?

The best way to merge PDF templates with dynamic data is using a unified client-side workflow with pdf-lib. It handles form filling and data extraction to streamline dynamic document generation efficiently.

Does pdfjs-dist support rendering PDFs for on-device previews?

Yes, pdfjs-dist supports client-side rendering and previewing of PDFs for on-device previews. It works alongside pdf-lib to provide a complete solution for viewing and modifying documents in web apps.

Why use client-side PDF processing instead of server-side document workflows?

Client-side PDF processing eliminates the fragmentation of using separate server tools for generation and viewing. It streamlines workflows by handling template merging, form filling, and rendering directly in the browser.

Are there limitations when modifying existing PDFs with pdf-lib?

When modifying existing PDFs with pdf-lib, processing is strictly client-side and includes form handling, text embedding, and page rendering. Complex server-side document workflows or large batch processing may require additional architecture.