0 Replies Latest reply on Jan 28, 2011 1:24 PM by Mecarga

    PHP render data as PDF header('Content-type: application/pdf');

    Mecarga

      Due to recent changes in security this kind of operation no longer works in IE8:

       

      <?php

       

      $data = 'Data rendered by any PDF library';

       

      header('Content-type: application/pdf');

      header('Content-lenght:'.strlen($data));

      header('Content-disposition: inline; filename=my_data_as_.pdf');

       

      echo $data;

      die;

      ?>

       

      I've tried IE8 trust list and disabling "enable security on startup" on the client's reader.

       

      What should web developers do in order to comply new security?