PDF Toolkit
Comprehensive PDF processing toolkit for text extraction, merging, splitting, OCR, and metadata.
Usage
/pdf-toolkit --extract <file> Extract text from PDF
/pdf-toolkit --info <file> Show PDF metadata
/pdf-toolkit --merge <file1> <file2> [--output] Merge multiple PDFs
/pdf-toolkit --split <file> --pages 1-3 Split PDF by page range
/pdf-toolkit --ocr <file> OCR scanned PDF pages
/pdf-toolkit --watermark <file> --text "Draft" Add text watermark
Features
- Text Extraction: Full text content with page-level separation
- Metadata: Title, author, creator, page count, creation date, file size
- Merge: Combine multiple PDF files into one
- Split: Extract specific page ranges
- OCR: Optical character recognition for scanned documents (Tesseract.js)
- Watermark: Add text watermarks to pages
Dependencies
pdf-parse— PDF text extraction and metadatatesseract.js— OCR engine (optional, for scanned PDFs)