0

我正在使用 fpdf 库向观众显示 pdf。所有浏览器都显示pdf,但我遇到了ie7的问题。因为什么都没有显示。

我用来签入的示例 pdf 代码,即。

require 'fpdf.php';
class PDF 
{
//Necessary codes for header footer body sction
}

$pdf=new PDF();
$title='Faq in Current Account';
$pdf->SetTitle($title);
$pdf->SetAuthor('Rangan');
$content="This is a sample content";
$pdf->PrintChapter(1,'title',$content);
$pdf->Output();
4

2 回答 2

1

添加?q=123到您正在调用的url,并在调试时再次调用它时更改号码。这可以防止您的浏览器和 PDF 插件缓存您的请求和以前的错误。

于 2010-12-20T10:35:04.233 回答
0

我花了大约 5 秒钟在 FPDF 常见问题解答中找到了这个

于 2010-12-20T10:14:17.587 回答