Launching soon Early access list is open

Design the PDF.
Get the PHP code.

getpdfcode is a visual builder for PHP PDFs. Lay out invoices, reports and certificates on a real page, bind your data, then export ready-to-run code. The nested tables and library quirks are handled for you.

We'll only email you about the launch. No spam.

Exports to html2pdf Dompdf mPDF
generate.php
1use Spipu\Html2Pdf\Html2Pdf;
2
3ob_start(); include 'template.php';
4$html = ob_get_clean();
5
6$pdf = new Html2Pdf('P', 'A4', 'en');
7$pdf->writeHTML($html);
8$pdf->output(__DIR__.'/document.pdf', 'F');
How it works

From blank page to PHP in three steps

No hand-tuned tables, no guessing what each library supports. Design it once and take working code away.

01

Draw the document

Drag rows, tables, text and images onto a real A4 or A3 page and style them in the panel beside it — or open a finished template instead of a blank one.

dragdropstyle
02

Mark what changes

Turn the parts that differ per document — a name, a total, a list of line items — into variables. Repeat a row per item, or hide a section by rule.

{{ variables }}loopsconditions
03

Take the PHP away

Download a small Composer project — template, runner, fonts and images. Pass in your data from your own app and it writes the PDF.

template.phpgenerate.php
What's inside

Everything you need to ship a PDF

Built for developers who would rather design an invoice than debug one.

Visual builder

Rows, columns, tables, text and images on a real page, with images or gradients behind any row. What you see is what renders.

Three PHP libraries

Export for html2pdf, Dompdf or mPDF — the one you already use — and switch libraries later without rebuilding the document.

Data, loops & conditions

One template, any number of documents. Bind variables to any element, repeat rows for line items, and show sections only when the data calls for them.

Live preview

See the real PDF in your browser before you export, rendered by the same engine that will produce your file.

Templates & blocks

Open a finished résumé, letter or certificate and change what you need — or build up from headers, line-item tables, totals and timelines.

QR codes & barcodes

Code 128, EAN, PDF417, DataMatrix and more, drawn as vectors rather than pasted images — sharp at any size, and scanners read them.

Be first to build with getpdfcode.

We're putting the finishing touches on it. Leave your email and we'll tell you the moment it's live.

We'll only email you about the launch. No spam.