alpha · free to use

Build PDF layouts visually.
Get clean PHP code instantly.

Draw your layout on a canvas. arabel-pdf writes the code — no coordinates, no trial and error, no Composer bloat.

invoice.php · arabel-pdf · 49 lines
$style = new DocumentStyle();
$style->h1(22, [15, 55, 120], 'B', 12)
      ->h2(12, [15, 55, 120], 'B',  8)
      ->p(9,   [60, 60, 60],  '',   5.5);

$style->tableHeadBg = [15, 55, 120];
$style->tableHeadFg = [255, 255, 255];
$style->tableAltBg  = [235, 241, 255];

$doc = new Document('Helvetica', $style);

$doc->setHeader()
    ->bg([15, 55, 120])->fg([255, 255, 255])
    ->left('ARABEL SRL', 'Software & Digital Products')
    ->right('FATTURA', '# INV-2026-0042')
    ->height(22);

$doc->setFooter()
    ->left('Arabel Srl — P.IVA IT09876543210')
    ->right('Pagina {page}');

$doc->addPage();
$doc->spacer(6);

$doc->row()
        ->col(6)->h2('Emessa da')
        ->col(6)->h2('Fatturata a')
    ->endRow()
    ->row()
        ->col(6)->p('Arabel Srl')
        ->col(6)->p('Acme Technologies SpA')
    ->endRow();

$doc->spacer(6)->hr()->spacer(4);

$doc->table(['Descrizione', 'Qty', 'Prezzo', 'Totale'])
        ->widths([6, 1, 2, 3])
        ->align(['L', 'C', 'R', 'R'])
        ->tr(['Sviluppo modulo PDF',  '1',  '€ 3.200,00', '€ 3.904,00'])
        ->tr(['Licenza annuale Pro',  '12', '€ 49,00',    '€ 717,36'])
        ->tr(['Supporto prioritario', '1',  '€ 600,00',   '€ 732,00'])
    ->endTable();

$doc->panel()
        ->bg([15, 55, 120])->fg([255, 255, 255])
        ->padding(4)->h2('TOTALE: € 5.353,36')
    ->endPanel();

$doc->output('invoice.pdf', 'F');
// pdf builder

Design once.
Export anywhere.

A visual canvas that understands PHP PDF libraries — so you focus on layout, not API surface.

Drag-and-drop canvas
Place widgets on a real-scale A4/Letter canvas. Move, resize and reorder without touching a single number.
Multi-library export
Switch between arabel-pdf, mPDF and FPDF at any time. The builder regenerates idiomatic, copy-paste-ready PHP code for each.
Multi-page documents
Add as many pages as you need. Each page is independent — different layouts, margins, orientations.
Live code preview
The generated code updates as you edit. No compile step, no waiting — what you see is what you get in PHP.
Property panel
Click any widget to edit font size, color, alignment, padding and more. Changes reflect instantly in the generated code.
Row grid layout
Divide any horizontal strip into 1–6 equal columns and drop widgets inside. Perfect for tables, sidebars and multi-column data.
// widget palette

Everything you need
to build a PDF.

Semantic widgets map directly to library calls — what you drop is what gets generated.

Heading
Text block
Horizontal rule
Row / columns
Spacer
Image soon
Custom widget soon
Template soon
// arabel-pdf

A PHP PDF library
built for clarity.

Zero dependencies. Expressive API. One file to drop into any PHP project.

0dependencies
1file to include
PHP 7.4+compatible
MITlicense
~400lines of source
// compatibility

Already using mPDF or FPDF?

No need to switch. PDF Builder generates idiomatic code for both libraries — same visual layout, different output. Migrate to arabel-pdf whenever you're ready.

mPDF HTML/CSS-based · Composer
FPDF Classic · zero deps

Start building in 30 seconds.

Free account, no credit card. PDF Builder alpha is available immediately after signup.

Create free account → arabel-pdf on GitHub