Self-hosted PDF generation API

DocKiln can run as a self-hosted PDF generation API with a workspace, versioned templates, asynchronous jobs and authenticated downloads. The code is licensed under AGPL-3.0; hosting, storage and optional AI provider costs remain your responsibility.

When should you self-host?

Self-host when you need to operate the rendering service and storage in your own environment and can maintain the database, worker, renderer and backups. Use the hosted workspace when you prefer not to operate those services. Hosted billing is currently in test mode; there are no live paid plans in this release.

What must you operate?

The API accepts requests, the worker processes queued jobs, and the isolated renderer generates files. Keep the renderer private, configure persistent storage, terminate HTTPS at your ingress, and maintain consistent database and object-storage backups. Follow the deployment guide for environment variables and the supported setup.

Does self-hosting change rendering limitations?

The supplied deployment disables scripts and external subresources in rendered input. Prepare self-contained HTML and embedded assets, or publish a structured template. Self-hosting does not automatically make arbitrary interactive websites compatible.

How do you evaluate it?

Start with a fictional invoice, a long table and a certificate. Record page count, output size, visual correctness and end-to-end generation time on your own hardware. Keep fixture inputs and renderer versions alongside the measurements. DocKiln does not publish a cross-provider speed ranking; results depend on input, queue load and infrastructure.

Explore the source repository, licensing guide, HTML conversion guide, and sample invoice.