mumpo / fpdf-barcode
Fpdf 允许生成带有条形码的 PDF 文件
1.0.1
2016-09-12 14:38 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-09-23 12:57:39 UTC
README
##laravel-Fpdf-barcode
是https://github.com/anouarabdsslm/laravel-fpdf的分支,增加了条形码和二维码生成功能。
###用法
$fpdf = new FpdfBarcode(); $fpdf->AddPage(); // Code 128 horizontal // $x, $y, $code, $width, $height, $vertical $fpdf->code128(15, 15, 'HORIZONTAL CODE', 85, 10, false); // Code 128 vertical // $x, $y, $code, $width, $height, $vertical $fpdf->code128(150, 15, 'VERTICAL CODE', 85, 10, true); // QR // $code, $x, $y, $size $fpdf->QR('QR CODE', 15, 50, 20); $fpdf->Output();