lighth7015/tcpdf-laravel
Composer 安装命令:
composer require lighth7015/tcpdf-laravel
包简介
Better tcpdf support for laravel 5
README 文档
README
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.
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-05-31