【发布时间】:2012-08-22 15:52:57
【问题描述】:
我正在运行以下代码并出现此错误: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可以吗?
【问题讨论】:
-
我以前没有遇到过这样的问题。顺便说一句,这里有一个类似的问题可能会有所帮助:stackoverflow.com/questions/5441107/…
-
thnx ..我检查了这个问题但没有帮助我..我想知道是否有任何解析器可以与 fpdf 一起使用???我认为 Fpdi 不支持所有类型的 pdf 格式。