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.
Dompdf
3.1.6LGPL-2.1dompdf/dompdf
Pure PHP, and the most predictable of the three at depth: its CSS 2.1 box model is the one that surprises you least as a layout gets nested. The trade is that it has no bookmark API, and a link lands on the right page rather than on the element you pointed it at.
by The Dompdf Community
mPDF
8.3.1GPL-2.0-onlympdf/mpdf
The broadest HTML and CSS support of the three and the strongest Unicode handling, including right-to-left scripts. The only one of the three with text-shadow, and it draws barcodes and QR codes natively.
by Matěj Humpál, Ian Back
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.
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.
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.