@rishabhdugar

PDF Merge & Split

Merge and split PDF documents. Combine 2-25 PDFs into one with custom metadata, split by page ranges or fixed chunks, compress merged results, and inspect PDF metadata. Powered by PDFAPIHub.

当前版本
v1.0.0
code-plugin社区source-linked

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 Ranges5- 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

ToolDescription
merge_pdfsCombine 2-25 PDFs into a single document with optional metadata
split_pdfSplit a PDF by page ranges, per-page, or fixed chunks
pdf_infoCheck page count, encryption, and metadata before processing
compress_pdfCompress 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

ConstraintValue
Max input files (merge)25
Max pages per document200
Max total pages (merge)500
Max input file size50 MB
Max chunks (split)100

API Documentation

Full API docs: https://pdfapihub.com/docs

License

MIT

源码与版本

源码仓库

PdfApiHub/openclaw-pdf-merge

打开仓库

源码提交

ff164c091ef813c1917fbddeb0bcc5ebeaee50d8

查看提交

安装命令

openclaw plugins install clawhub:pdf-merge-split

元数据

  • 包名: pdf-merge-split
  • 创建时间: 2026/04/17
  • 更新时间: 2026/04/17
  • 执行代码:
  • 源码标签: main

兼容性

  • 构建于 OpenClaw: 2026.3.24-beta.2
  • 插件 API 范围: >=2026.3.24-beta.2
  • 标签: latest
  • 文件数: 7