我正在运行以下代码,并给我这个错误:FPDF error: This document (testcopy.pdf) probably uses a compression technique which is not supported by the free parser shipped with FPDI.我使用另一个名为pdf test.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');
Run Code Online (Sandbox Code Playgroud)
我想在两个pdf中分割pdf,并希望在文件附件字段中附加两个pdf.如何将pdf保存到服务器.用fpdf可以实现吗?