DocuForge logoDocuForge
DocuForge 开发者控制台

用 JSON 生成任何 PDF。

发票、合同、报告、书籍、证书 — Typst 能排版的一切。一次 POST,一个 PDF。Rust-powered,无需无头浏览器。

渲染路径

同步 API 响应

运行时

Rust 引擎,无 headless browser

Powered by Typst under the hood.

DocuForge logo

Workflow canvas

Source to PDF in one synchronous path

Sync-ready

Write

main.typ + data.json

Preview

Inline diagnostics path

Ship

Versioned API render

docuforge_get_usagedocuforge_list_templatesdocuforge_get_template
Critical path stable

Why PDF stacks fail in production

Design for synchronous execution, not queue-first workarounds.

Treat PDF generation as infrastructure: stable request contracts, predictable runtime behavior, and controlled version promotion.

Critical-path latency

Browser startup and page rendering can push documents off the request path.

Rust execution keeps inline render calls predictable for user-facing flows.

Operational overhead

Queue workers, retries, and webhooks add moving parts to simple PDF delivery.

A synchronous render API removes pipeline complexity for core document paths.

Release drift

Template edits without clear promotion rules create regressions in production.

Store templates in your own git repo. Send the Typst source directly with each request, or save it once and reference by ID.

功能

为发票、收据和报告而生。

通过显式契约构建、校验并发布模板,让生产行为可预测。

契约优先编辑器

用 Monaco 编写模板,结合诊断能力,从源码直达运行时输出。

Contract-first templates

同步渲染路径

预览与生产共用同一套确定性渲染核心。

Inline preview

资源管线

字体和图片一次上传,通过稳定文件引用绑定到模板。

Assets once

运行控制

清晰追踪渲染、配额与 API key,并提供可观测的使用信号。

Usage visibility

流程

一个 POST 请求,从 JSON 到 PDF。

采用与生产一致的三步发布模型:编写、验证、发布。

Step 01

结构化编写

模板与数据契约并排演进,让 schema 与版式同步迭代。

Step 02

预览与验证

实时渲染并通过诊断直接定位到失败行。

Step 03

发布与交付

通过清晰审计轨迹推广版本,并经由 API 在生产渲染。

Security, API and MCP

Ship sensitive PDFs without security drag.

Protect customer documents by default and keep audit conversations short. DocuForge gives teams secure delivery controls without slowing down shipping velocity.

TLS transport, authenticated APIs, and hardened defaults help teams clear security reviews without custom hardening projects.

Password-protected PDF delivery is built in for regulated workflows handling sensitive documents.

Credential and token handling defaults are designed to reduce leakage risk across render, billing, and webhook paths.

Render quick start
curl -X POST "$DOCUFORGE_API_URL/v1/render" \
  -H "X-API-Key: $DOCUFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "template_id": "tpl_123", "data": { "invoice_id": "1234" } }' \
  --output invoice.pdf
docuforge_get_usagedocuforge_list_templatesdocuforge_get_templatedocuforge_render_pdfdocuforge_render_preview_pdf

Blogs

Learn by shipping.

Browse posts

pain

Puppeteer PDF 生成太慢:一个更快的替代方案

Read

pain

Best PDF Generation Library in 2026: What Actually Holds Up in Production

Read

tutorial

Building a SaaS Invoice System with DocuForge API

Read

Production-ready workflow

准备好简化你的文档管线了吗?

先从 API 参考开始,再把同一套 payload 直接用于生产路径。

Fast render path

Built for predictable latency under load.

Security built in

TLS in transit plus hardened auth defaults.

Versioned templates

Ship safely with stable template releases.