简体   繁体   English

fpdf在ie7中不起作用

[英]fpdf not works in ie7

i am using fpdf library for displaying pdf to viewers. 我正在使用fpdf库向查看者显示pdf。 All browsers displays pdf but i met a problem with ie7. 所有浏览器都显示pdf,但我遇到了ie7问题。 since nothing is displayed. 因为什么也没显示。

sample pdf code i had used to check in ie. 我曾经用来检入样本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();

Add ?q=123 to the url you are calling and change the number every time you call it again when debugging. 在要调用的url上添加?q=123 ,并在调试时每次再次调用时更改其号码。 This prevents your browser and the PDF plugin to cache your request and previous errors. 这样可以防止您的浏览器和PDF插件缓存您的请求和以前的错误。

我花了大约5秒钟的时间才能在FPDF常见问题解答中找到

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM