![]() |
Generate PDF using FPDF library: Blank Output/Page - 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: Generate PDF using FPDF library: Blank Output/Page (/showthread.php?tid=54834) |
Generate PDF using FPDF library: Blank Output/Page - El Forum - 09-27-2012 [eluser]static void[/eluser] Sir, I have a problem:I'm going to generate a PDF report using FPDF library, but the output is BLANK.. there no error displayed, how can I fix this problem? Anyway, I tried this code in LOCALHOST and it works perfectly, but when I upload it to the cloud, there's no output to be displayed.. I tried to make the function output like this.. $this->fpdf->OUTPUT('try.pdf','I'); but nothing happens.. NOTE: In my output, C:/backup/employee_..php, the output is in the folder, there's no error and it works fine.. but when I upload this one, there no output to be display Quote:this is my CONTROLLER: Code: public function backup_employees_pdf() { Quote:This is my model: Code: public function load_data_employees() Quote:Config.php Code: $config['fonts_path']= "./system/fonts/font/"; that's the details.. PLS.. help me sir.. I badly need your response.. I tried to fix this but still, there no output.. ![]() BTW THANKS in advance! GODBLESS! ![]() Generate PDF using FPDF library: Blank Output/Page - El Forum - 09-27-2012 [eluser]mineroad[/eluser] I normally use dompdf so I won't be a huge help, but have you checked that FPDF is working outside of CI? If not you might want to throw up one of their pieces of example code. Depending on your success or failure wit the example outside of CI we can eliminate either CI or the server setup as the source of the issue. Generate PDF using FPDF library: Blank Output/Page - El Forum - 09-27-2012 [eluser]static void[/eluser] I tried it in localhost with this setup of codes, and it worked. BTW, i have a generate pdf using structured type php code in my system (it is already uploaded in the cloud) and it runs smoothly so it's not on the server. I dunno what's the problem behind this BLANK PAGE OUTPUT Generate PDF using FPDF library: Blank Output/Page - El Forum - 09-28-2012 [eluser]static void[/eluser] Hi there! is there anyway to know what's the problem and how to solve it? I really need to know it as soon as possible. Thanks in advance. |