Menu

%PDF-1.7 % error in tcpdf

Help
rajnikant
2013-03-05
2013-03-21
  • rajnikant

    rajnikant - 2013-03-05

    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

     
  • oudhay

    oudhay - 2013-03-13

    Hi,

    Do you have find a solution ? i have the same issue...

    Thanks !

     
  • cpw

    cpw - 2013-03-21

    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.

     

Log in to post a comment.

MongoDB Logo MongoDB