Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I try to generate a PDF and IE displays a blank page. What happens?

blank displays happens page PDF Try
0
Posted

I try to generate a PDF and IE displays a blank page. What happens?

0

First of all, check that you send nothing to the browser after the PDF (not even a space or a carriage return). You can put an exit statement just after the call to the Output() method to be sure. If it still doesn’t work, it means you’re a victim of the “blank page syndrome”. IE used in conjunction with the Acrobat plug-in suffers from numerous bugs, in all versions. You should test your application with as many IE versions as possible (at least if you’re on the Internet). The problem occurs mostly with the POST method, so it is strongly advised to avoid it (all the more that it causes other problems, see the next question). The GET works better but may fail when the URL becomes too long: don’t use a query string with more than 45 characters. However, a tip exists to exceed this limit: end the URL with .pdf, which tricks IE. If you use a formular, you can add a hidden field at the last position: The usage of PHP sessions also often causes

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123