pdf errors with php, apache2

Posted by julio on Stack Overflow See other posts from Stack Overflow or by julio
Published on 2010-06-16T15:59:50Z Indexed on 2010/06/16 16:02 UTC
Read the original article Hit count: 362

Filed under:
|
|
|
|

Hi-- I'm seeing some strange behavior from some dynamically generated PDFs using the TCPDF library in PHP.

Standard lamp stack-- however, if you try to open the PDF from Windows with Acrobat Reader, it gives an error that the "file is damaged and could not be repaired". From Mac, Linux, etc. the file works fine, and opens fine. It also opens fine in Google Docs-- so clearly the PDF itself is ok.

Is it possible that the mime type (application/pdf) is causing problems in Windows?

Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about apache2