The API2PDF blog

Blog

Release notes, tutorials in every language, troubleshooting guides and engineering notes from the team behind the PDF API.

Generate PDFs in Laravel with Api2Pdf: Blade Templates, Queued Jobs and Watermarks

Generate PDFs in Laravel: Blade views to PDF with the Http client, queued jobs that store and email them, and DRAFT/CONFIDENTIAL watermarks via Api2Pdf.

Read the post

Generate PDFs in FastAPI with Api2Pdf: Streaming Responses, Background Tasks and Jinja2

Build PDF downloads in FastAPI: a typed Api2Pdf client with httpx, StreamingResponse for invoices, BackgroundTasks for email, a...

Generate PDFs in Next.js App Router with Api2Pdf: Route Handlers, Server Actions and Vercel

Generate PDFs in Next.js 15 and 16: a server-only Api2Pdf client, a Route Handler that streams the PDF, Server Actions, and pri...

Shipping Labels and Event Tickets: QR Codes and Barcodes in PDFs with Api2Pdf

Generate Code 128 and QR codes with the Api2Pdf /zebra endpoint and render 4x6 shipping labels and signed event tickets as PDFs...

Batch PDF Generation in Production: Zip PDFs and Upload Straight to S3 with Api2Pdf

Render hundreds of PDFs in parallel, bundle them with the Api2Pdf /zip endpoint, and PUT the archive into S3 with useCustomStor...

Migrating off wkhtmltopdf to Headless Chrome: A Practical Guide for 2026

wkhtmltopdf is archived. Map every flag to Headless Chrome, fix headers, footers and CSS, and switch Api2Pdf endpoints with a t...

Generate PDFs from Cursor and Claude Code with the Api2Pdf MCP Server: A Hands-On Guide

Hands-on guide to the Api2Pdf MCP server: connect Cursor, Claude Code and VS Code, use all 11 tools, generate invoices, merge P...

Puppeteer vs Playwright vs HTML-to-PDF API: The Real Cost of PDF Generation in 2026

Puppeteer and Playwright on AWS Lambda vs the Api2Pdf HTML-to-PDF API: working code, cost math from 10k to 10M PDFs a month, an...

Build a RAG Pipeline in Python with Api2Pdf OpenDataLoader and MarkItDown

Build a Python RAG pipeline: convert PDFs and Office files with OpenDataLoader and MarkItDown, then chunk, embed, and query.

Api2Pdf Now Accepts x402 Payments: AI Agents Can Generate PDFs Without an Account

AI agents can now generate PDFs, images and barcodes with Api2Pdf by paying per request with x402 (USDC on Base), with no API k...

Api2Pdf now has an MCP server

Connect Cursor, Claude Code, VS Code or your own agent to mcp.api2pdf.com and get 11 tools: HTML, URL and Markdown to PDF, scre...

Convert Files to Markdown with the API2PDF MarkItDown API

The new POST /markitdown endpoint converts PDFs, Office documents and other files into clean Markdown for search, storage and A...

Convert Markdown to PDF API endpoint now available

Send raw Markdown to POST /chrome/pdf/markdown and get a rendered PDF back from Headless Chrome, with no intermediate HTML step.

Page 1 of 11 · 143 posts

Generate your first PDF in minutes

Create an account, grab an API key, and send one POST request. Pay only for what you use.