PHPackages                             padocia/laravel-nova-pdf - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. padocia/laravel-nova-pdf

ActiveLibrary

padocia/laravel-nova-pdf
========================

Generate Pdf from nova resources

v1.0.2(4y ago)2326.5k↓40%9[2 issues](https://github.com/Padocia/Laravel-Nova-Pdf/issues)[1 PRs](https://github.com/Padocia/Laravel-Nova-Pdf/pulls)MITPHPPHP &gt;=7.2.5

Since Jan 17Pushed 4y ago3 watchersCompare

[ Source](https://github.com/Padocia/Laravel-Nova-Pdf)[ Packagist](https://packagist.org/packages/padocia/laravel-nova-pdf)[ Docs](https://github.com/padocia/laravel-nova-pdf)[ RSS](/packages/padocia-laravel-nova-pdf/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

Export nova resources to pdf
============================

[](#export-nova-resources-to-pdf)

[![Laravel-Nova-Excel](https://user-images.githubusercontent.com/16169173/104830499-c1822980-5890-11eb-97a7-010f7ed9b4af.png)](https://user-images.githubusercontent.com/16169173/104830499-c1822980-5890-11eb-97a7-010f7ed9b4af.png)

✨ Features
----------

[](#-features)

- **Export nova resources to PDF.** Easily export nova resources to pdf file using blade templates designed by you ! It could be an invoice, a report .... sky is the limit.
- **PDF files are generated from [blade](https://laravel.com/docs/blade) templates.** Generating pdf has never been so easy, Write your pdf template using blade and export it as pdf.
- **Support [Tailwind Css](https://tailwindcss.com/) to style blade templates.** Prefer to use Tailwind css framework to style your blade templates ? wrap your div with `.tailwind-container` and you are ready to go.

Requirements
------------

[](#requirements)

This package is using [Browsershot](https://github.com/spatie/browsershot#requirements), The conversion is done behind the scenes by [Puppeteer ](https://github.com/GoogleChrome/puppeteer) which controls a headless version of Google Chrome.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require padocia/laravel-nova-pdf

```

If you don't have the `puppeteer` on your project:

```
npm install puppeteer

```

You can publish the default blade template :

```
php artisan vendor:publish --tag nova-pdf-template

```

Usage
-----

[](#usage)

Export to pdf nova actions may be generated using :

```
php artisan nova:ExportToPdfAction InvoiceAction

```

A new nova action is created under `app\nova\actions`, Feel free to customize or change the view

```
