I'm not actually sure this will work, but give this a try -
try {
jQuery.post('http://pdfgen-server/pdfgen', JSON.stringify(requestData),
function(data) {
window.open("data:application/pdf," + escape(data));
});
}
catch (err) {
; //error handling
}
(If it does work, then credit to this question)