Is it possible to do something like this?
$.post( '/generate/file', json_data_striginfied, function( data ) { var win = window.open() window.write(data) });
where is the binary data returned (pdf file)?
I tried this, and a new window contains binary data as text, this does not force loading. I would like it to force the download of a PDF file.
source share