Documentation

Find your answer

Searching InvoiceShelf 2

AI answers cover the latest version. Open v3 documentation.

Browse documentation
v2 docsAdministration

Custom PDF templates

v2 — StableVerified against 2.4.6
On this page

Use custom templates for layout changes beyond document customization. This requires access to the application files and familiarity with Laravel Blade. Work on a copy and test the generated PDF before selecting a design for real documents.

Creating a template

From the application directory:

php artisan make:template studio --type=invoice
php artisan make:template studio --type=estimate

The commands create separate invoice and estimate designs under storage/app/templates/pdf/, with a Blade file and preview image. Persist this storage directory across deployments and include it in backups.

The v2 command offers invoice and estimate designs. Do not use the v3 payment/report override commands on this release.

What a template receives

Start from the generated file’s variables and includes. Keep the existing amount and tax formatting rather than recalculating totals in Blade. Use escaped output for user-entered values, and inspect long addresses, notes and multiple-page documents.

Line items and partials

Version 2 copies a shared partials/table.blade.php for each document type. Editing that shared table can change every custom design of that type. Check all custom invoice or estimate designs after modifying it.

Fonts

Use fonts available to the configured renderer. The v3 Font Packages screen is not part of v2. Verify the actual font embedded by your template and renderer. Browser font availability alone does not guarantee PDF coverage.

Choosing a design per document

Create or edit an invoice or estimate and select its template. Preview the output and confirm line wrapping, totals, address blocks and page breaks. Keep the corresponding preview image aligned with the design so users can recognize it.

Edit this page on GitHubDocs published Nov 23, 2026