title: I want to show PDF ajax response in a modal window
body: <p>Using ajax I am getting the response as a PDF base64 data. Here in this example I am showing it in a new window, instead of that I want to show the PDF in a modal popup. Is there any way to do that?</p>
  
  <pre><code>$.ajax({
          type : "POST",
          url : getPrintablePDF,
          dataType : "json",
          contentType : 'application/json; charset=utf-8',
          data : JSON.stringify(params),
          success : function(data) {
              //console.log(data);
              var myResponse = eval(data);
              window.open('data:application/pdf;base64,' + myResponse.base64EncodedResponse);
  
          }
      });     
  </code></pre>