Skip to content

lighth7015/tcpdf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel 5.3 TCPDF

Forked from: verwer/tcpdf-laravel

Installation

Require package using composer require lighth7015/tcpdf-laravel

Usage

Create a view in resources/views/. You can use all TCPDF methods with the PDF facade.

Close each view with

PDF::Show();

In your controller use

return PDF::inline('path.to.view', compact('var1', 'var2'), 'OptionalFilename.pdf');

to show a PDF file inline, or

return PDF::save('path.to.view', compact('var1', 'var2'), 'OptionalFilename.pdf');

to force the user to download the file.

For a list of all available function take a look at the TCPDF Documentation

Configuration

Laravel-TCPDF comes with some basic configuration. If you want to override the defaults, you can publish the config, like so:

php artisan vendor:publish

Now access config/tcpdf.php to customize.

About

TCPDF helper for laravel

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%