the pdf file is unreadable

Topics: Developer Forum, User Forum
Jul 3, 2008 at 9:39 AM
Hi there,

That's a great library, thank you!

But i have a problem:
When I'm creating a pdf with PHPExcel_Writer_PDF and try to open it, it says: "Adobe reader could not open 'filename.pdf' because it is either not a supported file type or because the file have been damaged..."
I tried doing it in several different ways but it seem to have nothing to do with what kind of content I put there.
It's using PHPExcel 1.6.2 on PHP 5.2.4 and i'm trying to read it with Adobe Reader 8.

Any ideas?
thanks,
Itamar
Developer
Jul 5, 2008 at 10:01 PM
I was having a similar problem, but it turned out to be a stupid mistake from my side. I had by accident invoked PHPExcel_Writer_Excel2007 instead of the PHPExcel_Writer_PDF.

Also got that same error message when trying to open the PDF files in Acrobat Reader, but they were in fact XLSX files. Maybe you have a similar mistake?