xarenisoft / dpdf
该软件包最新版本(1.4.2)没有提供许可信息。
一个帮助轻松生成PDF的PDF引擎。
1.4.2
2021-11-24 05:19 UTC
Requires
- php: >=7.0.0
- setasign/fpdf: ^1.8
Requires (Dev)
- phpunit/phpunit: ^7
README
这个库提高了创建和定义具有指定结构的PDF报告的速度。向下查看。
$pdf = new DPDF(); $pdf->AddPage(); $pdf->SetFont("Arial", "", 9); //header $pdf->Table(DPDF::Horizontal(['weight'=>100,'border'=>'B'], [ DPDF::Cello(['text'=>'Id']), DPDF::Cello(['text'=>'Name']), DPDF::Cello(['text'=>'Age']), DPDF::Cello(['text'=>'Amount']) ] ) ); $pdf->Ln(); $pdf->Table(DPDF::Horizontal(['weight'=>100], [ DPDF::Cello(['text'=>'1']), DPDF::Cello(['text'=>'JAN']), DPDF::Cello(['text'=>'10']), DPDF::Cello(['text'=>'$1010']) ] ) ); $pdf->Output(rand()."pdf.pdf",'F');
通过composer安装
composer require xarenisoft/dpdf