FPDF error: This document (testcopy.pdf) probably uses a compression technique which is not supported by the free parser shipped with FPDI.
我使用了另一个名为test.pdf
的PDF文件,它可以正常工作,但是在testcopy.pdf
中出现了错误。我认为这是解析器的问题。有人知道可以与fpdf一起使用以避免此错误的其他解析器吗? 我的代码:
require('fpdf17/fpdf.php');
require('fpdf17/fpdi.php');
// initiate FPDI
$pdf = new FPDI();
while (ob_get_level())
ob_end_clean();
header("Content-Encoding: None", true);
// set the sourcefile
$pagecount = $pdf->setSourceFile('testcopy.pdf');
我想将pdf拆分为两个pdf,并将这两个pdf附加在文件附件字段中。如何将pdf保存到服务器上?是否可以使用fpdf实现?