我正在使用FPDI扩展类合并两个pdf。
function concat() {
foreach ($this->files AS $file) {
$page_count = $this->setSourceFile($file);
for ($i = 1; $i <= $page_count; $i++) {
$tplidx = $this->ImportPage($i);
$s = $this->getTemplatesize($tplidx);
if (strpos($file, 'test') || strpos($file, 'test_slip')) {
$this->AddPage('L', array($s['w'], $s['h']));
} else {
$this->AddPage($this->DefOrientation, array($s['w'], $s['h']));
}
$this->useTemplate($tplidx);
}
}
}
当我输出合并文件时,带有可填充字段元素的一个pdf使所有元素都消失,就像文本和条形码等一样。另一种形式是好的。当我回复可填写的pdf表单时,它工作得很好但是在这次合并之后我放弃了我的所有数据。
我很感激关于这个问题的任何指示。