Login   Register  
PHP Classes
elePHPant
Icontem

PDF error

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP Report  >  All threads  >  PDF error  >  (Un) Subscribe thread alerts  
Subject:PDF error
Summary:not a PDF or corrupeted file
Messages:3
Author:Pedro
Date:2012-12-06 19:56:33
Update:2012-12-16 16:21:25
 

  1. PDF error   Reply  
Picture of Pedro
Pedro
2012-12-06 19:56:33
Hi there!!
When i'm trying to export to PDF, i actually get the PDF file but when i open it with a pdf reader i get error messages such as "format error" or "not a PDF or corrupted file", how can i get it to work?

Thanks!!!

  2. Re: PDF error   Reply  
Picture of verni
verni
2012-12-14 11:17:56 - In reply to message 1 from Pedro
Try to open that file in some text editor and if you see some HTML code then you need to add exit(); after you do $R->render('PDF');

Script should do this automatically, but i will check, maybe there is some bug



  3. Re: PDF error   Reply  
Picture of verni
verni
2012-12-16 16:21:25 - In reply to message 2 from verni
Please note that this class wont work with latest PHPExcel lib, you need 1.7.6 version.