ajax and headers

ajax and headers

hello,

i am generating a pdf file with a php file and fetch the content of the pdf via ajax

$.ajax
({
type: "POST",
url: "./scripts/ajax/pdf.php",

success: function(returnedHTML)
{

}
});

the problem now is putting out the pdf. i have the pdf data now in returnedHTML, but... is there a way to send headers with ajax, that an open/save dialoge appears, so that i can save or open the file?