Generate professional PDF invoices from HTML templates via API. Integrate with your billing system for automatic invoice creation.
<?php
$pdf = $tc->pdf->run([
'html' => view('invoices.template', $invoice)->render(),
'format' => 'A4',
'margin' => ['top' => '20mm', 'bottom' => '20mm'],
'header' => '<span>Invoice {{ $invoice->number }}</span>',
]);
$storage->put("invoices/{$invoice->number}.pdf", $pdf->content);
Mail::to($invoice->customer)->send(new InvoiceMail($pdf->url));
First 100 calls are free. Upgrade when the workflow hits production.