PDFPipe

PDF Generation API

Generate PDFs programmatically

A PDF generation API that turns HTML or a saved template into a finished document over HTTP. Generate one PDF or thousands, attach webhooks for async batches, and never run a browser yourself.

Generate a PDF in a few lines

Call the endpoint from any language. Here it is in Node, but the same request works from Python, Go, Ruby, PHP, or plain curl.

JavaScript
const res = await fetch("https://api.pdfpipe.xyz/v1/pdf", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.PDFPIPE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    html: "<h1>Monthly report</h1>",
    options: { format: "A4", printBackground: true },
  }),
});
const pdf = Buffer.from(await res.arrayBuffer());

Built for programmatic generation at volume

Batch endpoint

Submit many documents in one call and have results delivered to a webhook when they finish.

Templates plus data

Save an HTML template once, then generate documents by passing JSON values, so your app sends data, not markup.

Stored documents

Optionally persist each generated PDF and get a hosted URL back instead of bytes.

What you can generate

  • Invoices, receipts, and statements from order data.
  • Reports and dashboards exported to a shareable PDF.
  • Certificates, contracts, and agreements from templates.
  • Anything you can express in HTML and CSS.

Frequently asked

How do I generate a PDF from an API?

POST your HTML and options to /v1/pdf with a bearer token. The response is the generated PDF. This works as a generate pdf api and a create pdf api from any backend.

Is there a PDF generator API for high volume?

Yes. The batch endpoint accepts many documents per request and posts results to your webhook when complete, so you do not hold a connection open while large jobs render.

Can I generate PDFs from templates instead of raw HTML?

Yes. Create a template with placeholders, then generate documents by sending only the data. This keeps markup out of your application code.

What languages are supported?

Any language that can make an HTTP request. Official Node and Python SDKs are available, and there are guides for Go, Java, Ruby, PHP, .NET, and more.

Which PDF API do you need?

These pages cover related search intents. Pick the one that matches what you are building.

500 free documents a month, flat pricing after that, and a live playground you can try without signing up.