DocForge
DocForge is a comprehensive PDF processing API that handles every stage of the PDF lifecycle. Generate beautiful PDFs from HTML/CSS or Jinja2 templates, manipulate existing documents (merge, split, encrypt), and extract structured data (text and tables). Powered by WeasyPrint for pixel-perfect CSS rendering and pdfplumber for accurate data extraction. All endpoints return instant results with…
DocForge endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST |
pdf_metadata_v1_pdf_metadata_post /v1/pdf/metadata |
Read PDF metadata, or update it if any fields are provided. If no update fields are provided, returns current metadata as JSON. If any update fields are set, returns an updated… |
| POST |
pdf_merge_v1_pdf_merge_post /v1/pdf/merge |
Merge multiple PDF files into a single document. Upload 2 or more PDF files as multipart/form-data. **Cost: 5 credits** |
| POST |
pdf_extract_tables_v1_pdf_extract_tables_post /v1/pdf/extract-tables |
Extract all tables from a PDF as structured JSON arrays. Each table is a 2D array of strings (rows x columns). **Cost: 8 credits** |
| POST |
pdf_extract_text_v1_pdf_extract_text_post /v1/pdf/extract-text |
Extract all text content from a PDF, page by page. Returns plain text, page count, and word count. **Cost: 8 credits** |
| POST |
pdf_from_template_v1_pdf_from_template_post /v1/pdf/from-template |
Render a Jinja2 HTML template with JSON data and convert to PDF. Use {{ variable }} placeholders in your template. **Cost: 10 credits** |
| POST |
pdf_encrypt_v1_pdf_encrypt_post /v1/pdf/encrypt |
Encrypt a PDF with a password, or decrypt a password-protected PDF. **Cost: 5 credits** |
| POST |
pdf_from_html_v1_pdf_from_html_post /v1/pdf/from-html |
Convert HTML content with optional CSS to a PDF document. Returns the generated PDF as a downloadable file. **Cost: 10 credits** |
| POST |
pdf_split_v1_pdf_split_post /v1/pdf/split |
Extract specific pages from a PDF document. Pages are 1-indexed. Supports ranges (1-3) and individual pages (5). **Cost: 5 credits** |
| Health | ||
| GET |
health_health_get /health |
|
| GET |
root__get / |
|
DocForge pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|
| PRO | $9.99 / month | — |
|
| ULTRA Recommended | $29.99 / month | 60 / minute |
|
| MEGA | $99.99 / month | 120 / minute |
|