PDF Merge & Split — OpenClaw Plugin
Merge and split PDF documents using the PDFAPIHub API. This OpenClaw plugin gives your AI agent the ability to combine multiple PDFs, extract specific pages, split documents into parts, and compress the results.
What It Does
Combine multiple PDF files into a single document, split large PDFs into smaller parts, and compress the output — perfect for invoice bundling, report assembly, chapter extraction, and document management.
Features
- Merge PDFs — Combine 2-25 PDFs by URL or base64 into a single document
- Custom Metadata — Set title, author, subject, and keywords on merged PDFs
- Google Drive Support — Share links auto-converted to direct downloads
- Split by Pages — Extract specific pages or ranges (e.g.
1-3,5,8-10) - Split Each Page — One PDF per page for batch processing
- Split into Chunks — Divide into N roughly equal parts
- Open-Ended Ranges —
5-means page 5 to the end - PDF Compression — Reduce file size with low/medium/high/max compression
- Compression Stats — Original size, compressed size, ratio, bytes saved
- PDF Info — Check page count, file size, encryption, and metadata
- Multiple Output Formats — Download URL, base64 string, or raw file
Tools
| Tool | Description |
|---|---|
merge_pdfs | Combine 2-25 PDFs into a single document with optional metadata |
split_pdf | Split a PDF by page ranges, per-page, or fixed chunks |
pdf_info | Check page count, encryption, and metadata before processing |
compress_pdf | Compress merged/split results to reduce file size |
Installation
openclaw plugins install clawhub:pdf-merge
Configuration
Add your API key in ~/.openclaw/openclaw.json:
{
"plugins": {
"entries": {
"pdf-merge": {
"enabled": true,
"env": {
"PDFAPIHUB_API_KEY": "your-api-key-here"
}
}
}
}
}
Get your free API key at https://pdfapihub.com.
Usage Examples
Just ask your OpenClaw agent:
- "Merge these three invoices into one PDF"
- "Extract pages 1-5 from this report"
- "Split this 50-page document into 5 equal parts"
- "Split every page into a separate PDF"
- "How many pages does this PDF have?"
- "Merge these PDFs and compress the result"
Use Cases
- Invoice Bundling — Combine monthly invoices into a single PDF for clients
- Report Assembly — Merge cover page, table of contents, and chapters
- Legal Document Packets — Bundle contracts, appendices, and exhibits
- Chapter Extraction — Extract specific chapters from a book PDF
- Selective Sharing — Share only relevant pages from a large document
- Batch Processing — Split scanned documents into individual page files
- Storage Optimization — Compress merged PDFs to reduce file size
Limits
| Constraint | Value |
|---|---|
| Max input files (merge) | 25 |
| Max pages per document | 200 |
| Max total pages (merge) | 500 |
| Max input file size | 50 MB |
| Max chunks (split) | 100 |
API Documentation
Full API docs: https://pdfapihub.com/docs
License
MIT