document-processing-pdf

Generate, parse, merge, and manipulate PDF documents using JavaScript PDF libraries.

3|Updated Aug 26, 2026
One-click install
npx skills add https://github.com/Fabric-Pro/fabric-oss --skill document-processing-pdf-fabric-pro
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: document-processing-pdf
Source: https://github.com/Fabric-Pro/fabric-oss/tree/main/.cursor/skills/document-processing-pdf
Command: npx skills add https://github.com/Fabric-Pro/fabric-oss --skill document-processing-pdf-fabric-pro

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Working with PDF files programmatically is tedious: generating documents from HTML, extracting text from existing files, merging or splitting pages, and filling forms all require specialized library knowledge. This Skill provides the guidance and patterns to handle these PDF tasks in JavaScript/TypeScript projects. ## Core Features & Use Cases - PDF Generation: Create invoices, receipts, and reports from HTML templates or programmatically with PDFKit and pdf-lib. - Data Extraction: Parse text, tables, and structured data from existing PDFs using pdf-parse, including legal documents and contracts. - Document Manipulation: Merge multiple PDFs, split large files, add watermarks, and fill PDF forms. - Use Case: Build an invoicing feature that generates a branded PDF receipt from order data and emails it to the customer automatically. ## Quick Start Ask the AI to generate a PDF invoice from your order data using PDFKit, or to extract all text from an uploaded PDF document.

Frequently Asked Questions about document-processing-pdf

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

FAQPage Schema
How do I generate a PDF from HTML in JavaScript?▼

Use a library like PDFKit or pdf-lib to build the document programmatically, or render HTML through a headless browser for complex layouts. PDFKit lets you add text, images, and styling directly in Node.js code.

How to extract text from a PDF file in Node.js?▼

Use pdf-parse to read a PDF buffer and return its text content along with metadata like page count. For structured table data, combine extraction with layout-aware parsing logic.

pdf-lib vs PDFKit: which should I use?▼

PDFKit is suited for generating new documents from scratch with a drawing-style API. pdf-lib is better for modifying existing PDFs, such as filling forms, merging files, or adding watermarks.

Can I merge or split PDF files programmatically?▼

Yes, pdf-lib supports loading multiple PDFs, copying pages between documents, and saving the result. This enables merging several files into one or splitting a large PDF into smaller parts.

Does PDF text extraction work on scanned documents?▼

No, scanned PDFs contain images rather than text layers, so parsers like pdf-parse return nothing. You need OCR integration to convert the scanned images into machine-readable text first.