Built on open source

getpdfcode does not render a single PDF on its own. Every document this site produces is written by one of three open-source engines, maintained by people who gave the work away. They are free to use, and free to read — and we pay them nothing. This page is where we say so, and where you can see exactly what you are shipping.

The three engines

Everything you export runs on one of these. Versions and licences are read from our lockfile, so they are the ones actually installed today.

What these licences mean for you

Worth reading before you pick an engine. Everything here is free for commercial use, but they are not all the same kind of free, and the code you export is yours to ship — so the choice is yours to make knowingly.

OSL-3.0Free to use, including commercially. Unusually, offering a modified copy as a network service counts as distributing it — so if you patch html2pdf and run it as a service, publish the patch. Using it unmodified, as we do, carries no such obligation.
LGPL-3.0-or-laterLGPL-2.1LGPL-2.1-or-laterFree to use in commercial and closed-source projects. If you modify the library itself, those changes have to be shared.
MITDo what you like, including in closed-source commercial work. Keep the copyright notice.
GPL-2.0-onlyStrong copyleft. Running it on your own server to generate PDFs is fine. Distributing a product with mPDF inside it means that product has to be GPL too — if that is a problem, export for Dompdf or html2pdf instead.

Plain-English summaries, not legal advice. Each project’s own licence file is the authority — the links above go to the source.

Also on this site

The typefaces and icons these pages are drawn with.

OFL-1.1Plus Jakarta Sans by The Plus Jakarta Sans Project Authors, and JetBrains Mono by The JetBrains Mono Project Authors — both under the SIL Open Font License 1.1, and served from our own servers.
ISCLucide — the icons, by the Lucide contributors.

All three take bug reports, and all three are worth reading if you want to know what is happening to your markup. The links above go to their repositories.

Not sure which engine to build against? Compare them here — or read the compatibility matrix.