question about send out pdf content

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • datactrl
    New Member
    • Jul 2008
    • 51

    question about send out pdf content

    Hi, all
    I create a pdf content on fly and then print it out with coding as following. It's used to work fine on an apache server. Now I change to another apache server on different machine, it won't work now. I wonder maybe the apache version is different, this one is lattest version. Can't figure out the problem. Please advise, thank you very much!

    header('Content-Type: application/pdf');
    header('Content-Disposition: inline');
    print($rpt_cont ent);
    Jack
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    to me it looks rather like a browser issue…

    Comment

    • GCAdmin
      New Member
      • Oct 2009
      • 1

      #3
      Wider problem

      Greetings,

      This may be a more widespread problem. We are having a problem with our Apache server in which the pdf file begins to display, but then hangs after a random number of bytes and eventually Acrobat Reader displays "insufficie nt data for an image" The number of bytes downloaded before the data stream stops, as shown in the status bar, is never the same twice - even with the very same pdf file. If I copy the same .pdf file from that server to another it downloads and displays normally.

      Does it in IE8 and Firefox 3

      Bob

      Comment

      Working...