title: PDF.JS viewer not working in Micorosft Edge
body: <p>I have use <code>PDF.js</code> and <code>Viewer.js</code> for print view.</p>
  
  <p><strong>Explanation :</strong> </p>
  
  <p>Here I am giving option to client to print <code>.pdf</code> file as per requirement it is working fine with chrome but not working with <code>Microsoft Edge</code>, <code>IE11</code>, <code>Firefox</code>.</p>
  
  <p>Working with chrome browser Image : </p>
  
  <p><a href="https://i.stack.imgur.com/hzdVG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hzdVG.png" alt="enter image description here"></a></p>
  
  <p>Not working with Microsoft Edge browser image.Here I could display a print view but pdf file is not properly visible.</p>
  
  <p><a href="https://i.stack.imgur.com/H9wJM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H9wJM.png" alt="enter image description here"></a></p>
  
  <p>JS Code as Below which is working fine with chrome.</p>
  
  <pre><code>$.ajax({
      type: "POST",
      traditional: true,
      url: url,
      async: false,
      data: params,
      dataType: "json",
      success: function (data) {
          if (data != null) {         
              $("#dvPrint").html("");
              // create and remove iframe for display pdf
              var frame1 = document.createElement('iframe');
              frame1.name = "frame1";
              frame1.id = "framePDFViewer";
              frame1.src = "/ViewerJS/#.." + data;
              frame1.width = 800;
              frame1.height = 50000;
              document.body.appendChild(frame1);
              setTimeout(function () {
                  var canvas = $("canvas", $("#framePDFViewer").contents());
                  for (var i = 0; i &lt; canvas.length; i++) {
                      var img = "&lt;img src='" + canvas[i].toDataURL() + "' /&gt;";
                      $("#dvPrint").html($("#dvPrint").html() + img);
                  }
  
                  document.body.removeChild(frame1);
                  PrintDiv($("#dvPrint").html(), function () { $('#Loader').hide(); });
              }, 5000);                        
          }                        
      },
      error: function (e) {
          $('#Loader').hide();
      }
  });
  </code></pre>