roy-sandip/laravel-tcpdf
Composer 安装命令:
composer require roy-sandip/laravel-tcpdf
包简介
TCPDF for laravel use.
README 文档
README
TCPDF support for laravel app. This package allows to use TCPDF with Laravel as native TCPDF.
Usages
You can use just like TCPDF native. Check its official documentation for all the reatures.
use RoySandip\LaravelTcpdf\PDF; $pdf = new PDF; $pdf->writeHTML('Hello World!', true, false, true, false, ''); $pdf->Output('example.pdf', 'D');
For working conveniently, there are some features like-
$pdf->view('admin.pdf.booking-receipt', ['dataModel' => $model]) ->download('file_name'); //file name can be set optionally
Publish Configuration
php artisan vendor:publish --tag=tcpdf-config
TCPDF default configuration can be edited at config/tcpdf.php
Publish Fonts
php artisan vendor:publish --tag=tcpdf-fonts
Documentation
Check TCPDF official Documentation.
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: mit
- 更新时间: 2022-11-16