$.ajax({
type: "post",
async: false,
mimeType: 'text/plain; charset=x-user-defined',
data: {licenseType: "gtfb"},
url: "/aicmer/pdflicense",
success: function (data) {
var rawLength = data.length;
var array = new Uint8Array(new ArrayBuffer(rawLength));
for (var i = 0; i < rawLength; i++) {
array[i] = data.charCodeAt(i) & 0xff;
}
var blob = new Blob([array], {type: 'application/pdf;charset-UTF-8'});
// var fileName = 'PDF'+new Date().getTime()+'.pdf';
//window.open(URL.createObjectURL(blob))
$("#printIframe").attr("src", URL.createObjectURL(blob));
}
});
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18