0
是否可以使用PHP5 PDF内置功能来编辑现有文件,这与Zend的这种方法类似。PHP5打开现有的PDF文件?
<?php
require_once 'Zend/Pdf.php';
$pdf = Zend_Pdf::load('blank.pdf');
$page = $pdf->pages[0];
$font = Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_HELVETICA);
$page->setFont($font, 12);
$page->drawText('Hello world!', 72, 720);
$pdf->save('zend.pdf');
?>
...但没有使用Zend?
(相关质疑PDF Editing in PHP?)
谢谢啊我在这里看到http://www.php.net/manual/en/pdf.installation.php这不是内置的。 –