PDF Label

PDF Title

PDF Description

Installation

Terminal
$ composer require leertech/tailwind-pdfgenerator
Package successfully installed
SI

Simple Integration

Simple integration into your Laravel project

TW

Tailwind CSS

Full Tailwind CSS support for beautiful PDFs

Features

HT

Headers & Footers

Included
CS

Custom Styling

Advanced
PS

Page Streaming

Supported

Usage Example

example.php
use LeerTech\Tailwind\PdfGenerator\PdfService;
// Configure your PDF document
return PdfService::generateFromView(
'pdf.template', // View template
$data, // Data to pass
'invoice.pdf' // Output filename
)
->headerView('pdf.header')
->footerView('pdf.footer')
->pageNumbers('Page {PAGE} of {TOTAL}')
->output();
// Additional configuration options
// ->pageSize('A4')
// ->orientation('landscape')
// ->margins([10, 10, 10, 10])
// ->protection(['printing' => 'low'])