Cannot open the generated PDF - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Cannot open the generated PDF (/showthread.php?tid=35137) |
Cannot open the generated PDF - El Forum - 10-20-2010 [eluser]bhakti.thakkar[/eluser] Hello All, I am using DOMPDF and generating the PDF's on the fly. There is one tmp directory in the application root which has 777 chmode. I get error (some junk data gets displayed) but the PDF's are getting saved in the tmp folder and they are fine. Where is the issue?? code in to_pdf_pi.php Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); Controller : Code: function PreviewFollowupReportPDF($Signofffollowup_ID,$Patient_ID,$Signoff_ID) Cannot open the generated PDF - El Forum - 10-20-2010 [eluser]bhakti.thakkar[/eluser] Also one interesting thing that i noticed is that this is an issue only in IE. All other browsers are opening the PDF well. What could be the issue?? Cannot open the generated PDF - El Forum - 10-20-2010 [eluser]Kamarg[/eluser] I had a similar issue when trying to open files over an ssl connection with IE. I found it was caused by http://support.microsoft.com/kb/323308. Essentially IE doesn't play well with cache headers over ssl when you try to open a file. Not sure if it's the same issue you're having but based on your post, it's the best I can come up with. Cannot open the generated PDF - El Forum - 10-20-2010 [eluser]bhakti.thakkar[/eluser] Thanks Kamarg... but it does not happen in all applications in IE. I have one more CI application and it does open the PDF well... |