Skip to content

Introduction

Typefold is a document generation API. It turns HTML, or a template plus JSON data, into PDF and Excel files, or an image of a page. Your application calls its HTTP API with an API key and gets the finished file in the response or from a background render.

Your team builds and previews templates in Studio, a web app, either on the page in the visual editor or in code. Studio also manages API keys, teammates and webhooks. Its Help button, at the bottom right of every screen, shows the docs for the screen you are on.

Documents your application produces again and again from data:

  • Invoices, receipts and e-invoices with an embedded XML file.
  • Statements and reports, as a PDF or as a real .xlsx workbook.
  • Tickets, certificates, labels and letters.
  • Archival and accessible PDFs (PDF/A and PDF/UA).
  • Short email and SMS texts, written in the same template language.

It is a poor fit for turning arbitrary web pages into PDFs: it is not a browser, so it does not run the page’s JavaScript and supports its own set of CSS. See supported CSS and what is not supported.

The API, Studio and templates work the same in both.

  • Hosted. Sign in to Studio and create a workspace. Its Home page walks you through a first template, an API key and the code that renders it. Nothing to install.
  • Self-hosted. Run Typefold on your own server, so documents and templates never leave your network. It needs a license key to render. See install.