kitpages/pdf-bundle
Composer 安装命令:
composer require kitpages/pdf-bundle
包简介
Symfony PdfBundle
README 文档
README
Pdf: FPDF and FPDI simple wrapper for Symfony
Installation
use composer update
add the new Bundle in app/appKernel.php
Use example
use Kitpages\PDFBundle\lib\PDF;
$pdf = new PDF(); $pagecount = $pdf->setSourceFile('oldPdf.pdf);
for($i = 1; $i <= $pagecount; $i++){ $tplIdx = $pdf->importPage($i); $s = $pdf->getTemplatesize($tplIdx); $pdf->AddPage($s['h'] > $s['w'] ? 'P' : 'L', array($s['w'], $s['h']), true); // This gets it the right dimensions $pdf->useTemplate($tplIdx, 0, 0, 0, 0, true); $pdf->SetFont('Arial','',8); $pdf->SetTextColor(168,168,168); $pdf->SetY(20); $pdf->SetX(80); $pdf->Write(0, 'modify my pdf'); } $pdf->Output('newPdf.pdf, 'D');
统计信息
- 总下载量: 3.55k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD
- 更新时间: 2013-05-15