The complete PDF Processing API toolkit
14 endpoints for the full PDF lifecycle — merge, split, rotate, watermark, compress, generate from HTML/images, extract text/tables/metadata, and convert to images.
curl -X POST "https://pdf.toolkitapi.io/v1/pdf/merge" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"pdfs": ["<base64_pdf_1>", "<base64_pdf_2>"]}'
import httpx
import base64
from pathlib import Path
pdfs = [
base64.b64encode(Path("a.pdf").read_bytes()).decode(),
base64.b64encode(Path("b.pdf").read_bytes()).decode(),
]
resp = httpx.post(
"https://pdf.toolkitapi.io/v1/pdf/merge",
headers={"X-API-Key": "YOUR_KEY"},
json={"pdfs": pdfs},
)
merged = base64.b64decode(resp.json()["pdf"])
Path("merged.pdf").write_bytes(merged)
const resp = await fetch("https://pdf.toolkitapi.io/v1/pdf/merge", {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-API-Key": "YOUR_KEY",
},
body: JSON.stringify({ pdfs: [base64Pdf1, base64Pdf2] }),
});
const { pdf } = await resp.json();
console.log(`Merged PDF: ${pdf.length} chars base64`);
Browse by Category
Everything you need for PDF manipulation, generation, extraction, and conversion.
Manipulation
6 toolsMerge, split, rotate, compress, watermark, and protect PDF documents.
Generation
2 toolsGenerate PDF documents from HTML content or images — one image per page, auto-scaled.
Extraction
5 toolsExtract text, metadata, tables, form fields, and structural info from PDF documents.
Conversion
1 toolsRender PDF pages as high-quality PNG or JPEG images at configurable DPI.
Built for Developers
Designed to simplify your workflow, not complicate it.
Stateless & Base64
Send base64 PDF in, get base64 PDF out. No server-side file storage, no session tokens, no cleanup.
14 Endpoints
Manipulation, generation, extraction, and conversion — full PDF lifecycle in one API key.
Pure Python Stack
Built on pypdf, reportlab, pdfplumber, and pymupdf — battle-tested libraries, no fragile CLI wrappers.
HTML to PDF
Convert HTML with inline CSS to clean PDF documents — perfect for invoices, reports, and receipts.
Start processing PDFs in minutes
One API key. 12 endpoints. Merge, split, compress, extract, convert, and more.
Get Free API Key →