How topdf string from ajax as pdf in browser ...

How topdf string from ajax as pdf in browser ...

Hello,

Im using ajax to call a program that will create a pdf stream.

How do I change the content type to display as a pdf.

Ignore the "/%..%/", that is as/400 stuff 

$.ajax({                                                                                            
  type: 'get',                                                                                      
  async: false,                                                                                     
  dataType: 'text',                                                                                 
  url:'EQU03A.PGM',                                                                                 
  data:{USER:"/%USER%/", scfile:$file, sccols:$header.toString(), scfilt: $filstr, mode:'PDF'},     
  success: function($pdf) {                                                                         
  $("#pdf").empty();                                                                                
  $("#pdf").append($pdf);                                                                           
         }                                                                                          
       });