That's not an error message, it is the uninterpreted PDF-content. That means the receiving browser doesn't know what to do with the file (respectively its MIME-type) and shows it as something like "text/plain" or "text/html" - maybe the server doesn't allow other MIME-types. If it works for you locally but not on another webserver, the problem probably lies in the webserver configuration (Apache?) somehow blocking or overriding headers sent by PHP.
Get Firebug for Firefox and take a look at the http-headers (tab "Network", expand the GET-request - see attached screenshot), especially "Content-Type" and "Content-Disposition". Compare the headers of the local and the remote server, you'll probably find a difference here.
TCPDF giving error while creating pdf
it gives strange error of characters
%PDF-1.7 %âãÏÓ 8 0 obj << /Type /Page /Parent 1 0 R.............
.....
.....
and so on.
I have installed
tcpdf_5_9_207.zip
and php 5.0
,
It is working fine in my local machine but not correct in online version
Please help
Hi,
Do you have find a solution ? i have the same issue...
Thanks !
That's not an error message, it is the uninterpreted PDF-content. That means the receiving browser doesn't know what to do with the file (respectively its MIME-type) and shows it as something like "text/plain" or "text/html" - maybe the server doesn't allow other MIME-types. If it works for you locally but not on another webserver, the problem probably lies in the webserver configuration (Apache?) somehow blocking or overriding headers sent by PHP.
Get Firebug for Firefox and take a look at the http-headers (tab "Network", expand the GET-request - see attached screenshot), especially "Content-Type" and "Content-Disposition". Compare the headers of the local and the remote server, you'll probably find a difference here.