So I need to be able to open a pdf that is generated, by a server-side script, based on the html that I send it. The html is a huge string. I was thinking using ajax with widow.open
but I can't seem to wrap my head around how.
$.ajax({
type: "POST",
url: "/pdf",
data: {input:html},
success: function(msg) {
window.open(msg)
},
error: function(msg) {
}
});
I thought this would work, but it did not.