Properly Create and Serve PDF Blob via HTML5 File and URL APIs

jQuery.ajax does not currently support blobs, see this bug report #7248 which is closed as wontfix. However it’s easy to do XHR for blobs without jQuery: var xhr = new XMLHttpRequest(); xhr.open(‘GET’, ‘http://www.grida.no/climate/ipcc_tar/wg1/pdf/tar-01.pdf’, true); xhr.responseType=”blob”; xhr.onload = function(e) { if (this.status == 200) { // Note: .response instead of .responseText var blob = new Blob([this.response], … Read more