Skip to content
PressJetDocs Docs v0.1.0-beta.9 GitHub
Edit this page
Source docs v0.1.0-beta.9 Install v0.1.0-beta.7
On this page

Licensing

Pressjet uses two licenses.

Part License Why
crates/ (engine, HTML compiler and server), services/ (except the four Apache-licensed HTML modules below), the Docker images and release binaries FSL-1.1-ALv2 Lets anyone use and self-host Pressjet while keeping others from reselling it as a competing service.
services/html/{import_invoice,invoice_css,print_input,print_html}.py, sdks/, spec/, docs/, skills/, bench/, experiments/, scripts/, tools/, web/, examples Apache-2.0 Client code, the specification and the measurements end up in other people's work; they must be free of conditions.

Every folder is in one row of this table; it is the only statement of which license applies where, and CONTRIBUTING.md points here.

What the Functional Source License allows

The FSL lets you use, copy, modify and redistribute the software for any Permitted Purpose, which is any purpose except a Competing Use: making the software available to others in a commercial product or service that substitutes for Pressjet or for a Pressjet product or service that exists when that version is released.

So you may, without asking or paying:

  • Run Pressjet on your own servers to generate your own documents, at any scale, in a commercial product. For example, a SaaS that sends its customers invoices rendered by its own Pressjet.
  • Modify it and keep the changes private, or share them.
  • Embed the engine crate in your application.
  • Use it for research, education and evaluation.
  • Offer professional services (setup, support) to people using Pressjet.

You may not, before the version's change date:

  • Offer a PDF rendering API, hosted Pressjet or similar product to third parties built on this code.

Two-year conversion

Every release becomes available under Apache 2.0 two years after it is published. Old versions turn into fully open source software on a fixed schedule, whatever happens to the project.

Why not MIT, Apache or AGPL for everything

  • MIT or Apache for the server would let any cloud provider offer Pressjet as a service with no contribution back, which would make a sustainable hosted Pressjet impossible.
  • AGPL does not stop a competing service (it only requires publishing changes) and many companies forbid AGPL software outright, which would hurt adoption more than the FSL does.
  • The FSL is used by Sentry, Codecov, GitButler, Keygen and others, and is recognized under the Fair Source definition. It is not an OSI-approved open source license; the two-year conversion is what makes each release open source eventually.

Fonts

The fonts compiled into the engine are the unmodified releases (Archivo 2.001, Liberation 2.1.5, DejaVu Sans 2.37). They are under the SIL Open Font License 1.1: Archivo (crates/pressjet-engine/fonts/OFL.txt) and the Liberation fonts (crates/pressjet-engine/fonts/LIBERATION-COPYRIGHT.txt). The OFL allows embedding them in software and in the PDFs it produces. DejaVu Sans, the fallback for symbols, is under the Bitstream Vera Fonts license (crates/pressjet-engine/fonts/DEJAVU-LICENSE.txt), which permits the same and asks that the font not be sold by itself.

Third-party code

  • Rust crates are under MIT, Apache 2.0 or similarly permissive licenses; cargo deny check licenses fails the build otherwise. Those licenses ask that their text travel with the binaries, so THIRD-PARTY-LICENSES.txt (written by scripts/third-party-licenses.sh with cargo-about, and checked in CI) is shipped in every release archive, in the Docker image under /usr/share/licenses/pressjet/, in the npm renderer package and with the browser build the website serves.
  • Code taken from another project: only the PDF417 codeword table, from the MIT-licensed pdf417 crate; its notice is in the file and in NOTICE.
  • The HTML reference service image adds WeasyPrint and its Python dependencies (BSD, MIT, Apache; Pyphen under MPL 1.1 or LGPL) and Debian's Pango (LGPL 2.1 or later, as an unmodified shared library) and HarfBuzz. Each carries its license inside the image.
  • The SDKs have no runtime dependencies. Their development tools (test runners, linters) are not distributed.
  • CI tools such as veraPDF, poppler and zxing-cpp run in CI only and are not distributed.

Barcodes

QR Code, PDF417, Data Matrix and Code 128 are published ISO/IEC standards. DENSO WAVE does not exercise its QR Code patent rights, and the patents on PDF417 and Data Matrix have expired, so generating these symbols needs no license. "QR Code" is a registered trademark of DENSO WAVE INCORPORATED.

Names of other products

The benchmarks and guides name other products (Gotenberg, Browserless, react-pdf, WeasyPrint, Chromium) only to describe and measure them. Those names belong to their owners, and Pressjet is not affiliated with or endorsed by them. Every comparison states the versions, the method and the data it used, and can be rerun from bench/.

This page explains the licenses; the license texts are what bind.