Blog
Technical articles on PDF generation and document automation.
@funbrew/pdf-client: Browser SDK for PDF, tus Upload and SSE
Guide to @funbrew/pdf-client — the browser SDK unifying tus resumable uploads, SSE progress, and PDF generation in one JavaScript package.
Resumable PDF Uploads with tus.io: A Complete Guide
Large PDF uploads failing on network drops? FUNBREW PDF tus.io API resumes from the last offset, bypassing upload_max_filesize limits. curl and JS SDK examples.
Real-Time PDF Progress Streaming with SSE and X-Job-Id
Stream PDF job progress in real time using FUNBREW PDF API's Server-Sent Events. curl, EventSource, and @funbrew/pdf-client SDK examples included.
PDF API in Ruby: Rails, Sidekiq & Production Patterns
Generate PDFs in Ruby with FUNBREW PDF API. Covers Rails service objects, Sidekiq async jobs, Faraday retry middleware, and production deployment patterns.
PDF API for Go (Golang): Complete Integration Guide
Generate PDFs in Go (Golang) with FUNBREW PDF API. Goroutine worker pools, exponential backoff, Gin/Echo integration and production deployment patterns.
PDF Split API: Split PDF Pages by Range with FUNBREW PDF
Split any PDF by page range or page list using FUNBREW PDF API. Node.js, Python, and PHP examples for splitting invoices, reports, and certificates.
PDF Compress API: Reduce PDF File Size via a Single API Call
Compress PDF files via FUNBREW PDF API using Ghostscript. Choose low, medium, or high quality presets. Node.js, Python, and PHP examples included.
HTML to PDF in Python: Jinja2 Template Patterns Guide
Convert Jinja2 templates to PDF in Python with FUNBREW PDF API. Covers template inheritance, Pydantic binding, multilingual output, and custom Jinja2 filters.
How to Add a Watermark to PDF via API Using HTML and CSS
Add watermarks to PDFs with HTML/CSS and FUNBREW PDF API. Examples in curl, JavaScript, and Python. Uses position:fixed so the watermark repeats on every page.
HTML Form to PDF: Convert Web Forms to PDF with an API
Convert HTML forms to PDF with FUNBREW PDF API. Build applications, contracts, and surveys with Node.js, Python, and PHP examples for generation and download.
PDF Merge API Guide: Combine Multiple PDFs in One API Call
Combine PDFs via the FUNBREW PDF merge API. Node.js, Python, PHP, and cURL examples with bulk strategies, encrypted PDF pitfalls, and size limit fixes.
JavaScript PDF Generation with Fetch API & Blob Download
Generate PDFs with vanilla JavaScript and the Fetch API — no Puppeteer needed. Covers Blob download, error handling, React and Vue.js integration.
PDF API Rate Limiting | 429 Errors & Exponential Backoff
Handle PDF API 429 errors using Retry-After, exponential backoff, preemptive throttling, and concurrency control. JavaScript and Python code included.
Invoice PDF HTML Template Guide | CSS Layout & Design
Design professional invoice PDF templates in HTML and CSS. Table layout, page sizing, brand colors, multi-page headers, and dynamic data binding for PDF API.
PDF Webhook Payload Reference | HMAC Verification & Retry
Full field definitions for FUNBREW PDF webhook payloads. HMAC-SHA256 verification, retry schedules, and idempotency in Node.js, Python, and PHP.
wkhtmltopdf @page CSS Guide: size, margin, and Layout
wkhtmltopdf @page CSS guide: A4 size, margin 0, page numbers, and headers. Which properties actually work, CLI flag workarounds, and Chromium migration path.
CSS Print to PDF Cheatsheet: Copy-Paste Snippets by Topic
One-page CSS print-to-PDF cheatsheet: copy-paste snippets by category, a symptom/cause/fix table, and how CSS rules map to FUNBREW PDF API options.
Certificate PDF SDK Quickstart: Generate Your First PDF Fast
Generate a certificate PDF in minutes. Node.js, Python, PHP, and cURL code examples — plus retry logic, rate limit handling, and production tips.
HTML to PDF in 2026: All Methods Compared with Code
Every major HTML to PDF method in 2026 compared: browser print, wkhtmltopdf, Puppeteer, Playwright, WeasyPrint, and managed PDF APIs — pros, cons, and code.
Async PDF Generation Status: Polling vs Webhook
Polling vs webhooks for async PDF generation status tracking. Exponential backoff, signature verification, and idempotency patterns — Node.js and Python code.
Puppeteer vs PDF API: Performance and Cost Compared
Self-hosted Puppeteer vs managed PDF API: memory usage, cold starts, concurrency, Docker image size, and cost — with the trade-offs to guide your decision.
CSS Print Stylesheet for PDF: @media print, Breaks & Fonts
Build a print stylesheet for HTML-to-PDF: @media print vs @page, page breaks, backgrounds, repeating table headers, fonts, hidden elements, and layout patterns.
API Certificate Generator: PDF Certificates in One Request
Render recipient data into HTML and get a certificate PDF from one POST: reusable Node.js and Python wrappers with templates, retries, and HMAC-signed IDs.
Event Certificate Generator: CSV to Tier-Based PDFs
Bulk-generate event certificates from an event-platform CSV: map ticket tiers to templates and deliver QR-verified PDFs in parallel with FUNBREW PDF API.
API Key Client Grouping for Resellers and Multi-Tenant SaaS
Use client_label and tags on FUNBREW PDF API keys to organize PDFs, logs, and CSV exports by client. Learn billing allocation and safe key deletion.
Embed QR Codes in PDF: Node.js, Python & API Guide (2026)
Embed QR codes in PDFs with Node.js or Python. Generate Base64 QR codes, insert into HTML templates, and convert via PDF API. Copy-paste examples included.
Export Google Analytics Data to PDF Reports via API
Automate GA4 to PDF report generation. Fetch GA4 metrics, render Chart.js charts, and email branded PDF reports automatically. Node.js and Python code included.
Playwright PDF Too Slow? Move PDF Generation to a Managed API
Fix Playwright PDF memory issues, slow cold starts, and Chromium version headaches. Step-by-step migration guide with Node.js and Python before/after code.
Migrating from wkhtmltopdf: @page CSS, Fonts & API Guide
Migrate from wkhtmltopdf to a Chromium PDF engine. Fix @page size A4 margin 0 and CSS issues — with curl, Python, and Node.js migration code.
PDF Certificate API Integration Guide
Integrate a certificate generator API to automate PDF issuance. Covers LMS webhooks, auth, error handling — Node.js and Python examples.
Playwright PDF Generation: page.pdf() Guide & Code Examples
Generate PDFs with Playwright page.pdf(): options, headers/footers, CSS print media, plus migration to FUNBREW PDF API with Node.js and TypeScript examples.
Generate Certificates from CSV: Bulk Certificate Generator
Generate certificates from a CSV in bulk: merge rows into an HTML template, call the PDF API in parallel, retry failures, and ZIP the PDFs (Node.js, Python).
Python PDF Generation: ReportLab, WeasyPrint & API (6 Ways)
Compare 6 Python PDF libraries: ReportLab, WeasyPrint, xhtml2pdf, pdfkit, Playwright, FUNBREW PDF API. Use-case guide, code examples for invoices and reports.
Node PDF API Guide: Express, Lambda & Edge with FUNBREW PDF
Use a Node PDF API to generate PDFs in Express, AWS Lambda, Hono, and Cloudflare Workers. HTML templates, error handling, concurrency — no Puppeteer required.
5 Free HTML Certificate Templates for PDF Generation
Copy-paste HTML certificate templates for PDF. Completion, award, diploma, attendance & credential templates. Batch issue via API with code examples.
CSS @page Rule for PDF: Size, Margins, Named Pages & Headers
The CSS @page rule for PDF in depth: A4 size and margins, :first/:left/:right/:blank, named pages, and margin boxes for headers, footers, and page numbers.
PDF Generation: API vs Library — How to Choose in 2026
Should you use a PDF library or an API? Compare setup time, rendering quality, CJK support, scaling, and cost to find the best approach for your project.
PDF Generation API vs Browser Print (window.print)
Compare window.print() with PDF APIs. Browser printing limitations, @media print pitfalls, and migration guide.
PDF Accessibility Guide: PDF/UA, WCAG & ADA Compliance
Build accessible HTML for PDF generation. Covers PDF/UA, WCAG 2.2, contrast ratios, and how to verify tags and reading order with PAC and axe-core.
C# / .NET PDF API Guide — iTextSharp Alternative
Generate PDFs in ASP.NET Core with FUNBREW PDF API. HttpClient DI, Razor templates, BackgroundService, test mocking, Polly retry, and production tips.
PDF Merge, Split, Compress & Watermark: API Guide
Automate PDF post-processing via API: merge, split, compress, watermark, page numbers. Code examples in curl, Python, Node.js. Library comparison included.
Japanese PDF Fonts: Noto Sans JP, WOFF2 Embedding & CSS
Embed Noto Sans JP via data:font/woff2;base64 for offline PDF rendering — no CDN, no tofu boxes. Snippets for Google Fonts, self-hosted WOFF2, and Puppeteer.
Responsive HTML to PDF: Layout Patterns and Best Practices
Convert responsive HTML to PDF without broken layouts. Learn @media print, viewport width, Flexbox/Grid PDF behavior, paper sizes, and fixed headers/footers.
HTML to PDF Table Layout Guide: Fix Page Break Issues
Solve HTML to PDF table issues: split rows, missing thead, broken colspan/rowspan, responsive layout. Complete invoice example with CSS and API code.
Automate PDF Generation with GitHub Actions & PDF API
Automate PDF generation in GitHub Actions with FUNBREW PDF API. Learn Secrets management, HTML-to-PDF, Markdown-to-PDF, artifact uploads, and cron scheduling.
Automate Google Sheets to PDF with Apps Script
Automate Sheets-to-PDF with Apps Script and FUNBREW PDF API. Invoice generation, Drive storage, Gmail delivery, and scheduled triggers with GAS code examples.
Spring Boot PDF Generation: iText vs PDF API — Java Guide
Generate PDFs from Spring Boot with FUNBREW PDF API. No iText license needed — RestTemplate or WebClient, Thymeleaf templates, retry logic, and production tips.
Laravel PDF API Guide — Beyond DomPDF and Snappy
Integrate FUNBREW PDF API with Laravel. Code for Http Facade, service classes, Blade templates, Queue jobs, and Http::fake() testing — with production tips.
React PDF Guide: @react-pdf/renderer vs jsPDF vs API (2026)
How to generate PDF in React: compare @react-pdf/renderer, jsPDF, html2canvas, and API-based generation. Code examples, feature matrix, and use-case picks.
PDF API Integration for SaaS: Multi-Tenant Architecture Guide
Add PDF generation to your SaaS product. Architecture guide covering multi-tenant templates, async queues, webhooks, white-labeling, and cost optimization.
PDF Generation Slack Bot: Slash Commands, Scheduled Reports & Block Kit
Build a Slack bot that generates PDFs on slash command: /pdf commands, Block Kit messages, scheduled reports, and error handling, with Node.js examples.
WordPress PDF Generation: WooCommerce Invoices, Shortcodes & REST API
Add PDF generation to WordPress with the FUNBREW PDF API. Generate WooCommerce invoices, create shortcodes for downloadable PDFs, and build REST API endpoints. PHP code included.
PDF API with Docker & Kubernetes: Container PDF Generation Guide
Generate PDFs from Docker and Kubernetes with FUNBREW PDF API. Covers health checks, autoscaling, secret management, and CI/CD pipeline integration.
How to Generate PDFs in TypeScript: API, @react-pdf, pdfkit
Step-by-step TypeScript PDF generation guide: type-safe API calls vs @react-pdf/renderer vs pdfkit, with Zod validation examples for Next.js, Express, and Deno.
Markdown to PDF API Guide | 5 Themes & GFM Support
Convert Markdown to styled PDFs via API. 5 built-in themes, GFM support, with Python, Node.js, and PHP examples.
Using PDF API with Next.js and Nuxt 3: Complete Guide
Integrate FUNBREW PDF API into Next.js and Nuxt 3. Practical guide covering API Routes, Server Routes, client-side PDF downloads, and Vercel/Netlify deployment.
Django PDF Generation in 10 Lines — FastAPI & Celery Too
Generate PDFs in Django & FastAPI with FUNBREW PDF API. Jinja2 templates, Celery async, Django PDF response, and pytest examples — plus Flask support.
PDF API Quickstart for Ruby and Go: Code Examples
Generate PDFs with FUNBREW PDF API in Ruby and Go. Covers net/http, Faraday, Resty, Rails/Gin/Echo integration, error handling, and batch processing.
PDF API on AWS Lambda: Serverless PDF Generation Guide
Generate PDFs from AWS Lambda with FUNBREW PDF API. Cold start optimization, S3 integration, API Gateway setup, and async patterns with code examples.
HTML to PDF Troubleshooting: 12 Fixes for Blank PDF & Errors
Blank PDF? Garbled text? Chromium 'Target closed' errors? 12 copy-paste fixes for the most common HTML to PDF problems — diagnosed by symptom in 5 minutes.
PDF API Production Guide 2026: Rate Limits & Cost Control
2026 guide for running PDF APIs in production. Rate limit management, observability metrics, cost optimization, API key rotation, and queue-based scaling.
Automate PDF Reports: Charts, Data & Email Delivery
Automate PDF report generation with Chart.js charts, scheduled cron jobs, and email/webhook delivery — production examples in Node.js, Python, and PHP.
Convert HTML to PDF: Complete Guide 2026 — API & Puppeteer
How to convert HTML to PDF in 2026: compare Puppeteer, Playwright, wkhtmltopdf, and cloud PDF APIs. Node.js, Python, PHP, and curl examples included.
PDF API Error Handling: Retry & Exponential Backoff Guide
Handle PDF API errors — timeouts, rate limits, validation errors — with exponential backoff retry in curl, Python, Node.js, and PHP.
PDF Certificate Automation: Template Design to Bulk Delivery
API-based PDF certificate generator: bulk issuance from CSV or Google Sheets, QR verification, S3 archival, and email delivery — Python and Node.js examples.
HTML to PDF CSS Fixes: @page, Page Breaks & Backgrounds
Fix PDF CSS issues with @page margins, page breaks, backgrounds, fonts, running headers and counters, plus Puppeteer and PDF API engine-specific caveats.
PDF Batch Processing Guide: Generate Hundreds of PDFs Fast
Batch generate PDFs with an API. Covers batch endpoints, concurrency patterns, error handling, and performance tips in Node.js, Python, and PHP.
PDF API Pricing Comparison 2026: Find the Best Value
Compare PDF API pricing: FUNBREW PDF, DocRaptor, PDFShift, CraftMyPDF, and Api2Pdf. Free tiers, per-document costs, and volume simulations.
PDF API Quickstart: Node.js, Python & PHP — 5-Line Examples
Start generating PDFs from HTML in under 5 minutes. Copy-paste Node.js, Python, and PHP code that calls FUNBREW PDF API with a single POST request.
PDF API Security: API Keys, IP Whitelisting & SSRF Guide
Secure your PDF API integration with rotating API keys, IP whitelisting, SSRF prevention, and data masking. Production patterns for Node.js, Python, and PHP.
PDF API Webhook Guide: Slack and System Notifications
Get a callback when PDF generation completes. Covers HMAC signature verification, retry logic, and Slack/email notifications in Node.js, Python, and PHP.
Stop Babysitting Puppeteer: Migrate PDF Generation to an API
Migrate from Puppeteer or Playwright to a managed PDF API. Node.js, Python, and PHP before/after code shows how to drop Chromium and eliminate cold starts.
How to Automate Invoice PDF Generation with a REST API
Automate invoice PDF generation and email delivery via REST API. Dynamic data binding, batch processing, and webhook notifications with Python and PHP code.
HTML to PDF API Comparison 2026: With Code Examples
Compare wkhtmltopdf, Puppeteer, Gotenberg, and FUNBREW PDF for HTML to PDF conversion. Includes code examples, pricing, features, and operational trade-offs.
wkhtmltopdf vs Chromium: Choosing the Right PDF Engine
wkhtmltopdf vs Chromium for PDF: how they differ in CSS support, speed, and output quality. curl, Python, and Node.js examples for invoices, reports, and certificates.
PDF Template Engine Guide: Dynamic Content Generation
Generate PDFs dynamically with HTML templates and variables. Python, PHP, and Node.js examples with troubleshooting for invoices, certificates, and reports.