새 탭에서 PDF 응답을 PDF로 표시하는 것이 문제입니다. 내가 이런 일을하려고 오전 : URL에 \를 공격하려는 시도에서 리스폰스 무엇인가를 줄 % PDF-1.4 내가 쓴PDF 응답 읽기 및 PDF 표시 ajax
코드
$.ajax({
type: 'GET',
url: url,
headers: {
'Content-Type': 'application/pdf'
},
success: function(data, status, xhr){
var newWindow = window.open("", "new window", "width=200, height=100");
newWindow.document.write(data); // displays the result in new window
},
}
1 0 ... %%의 EOF 하지만 내가 기대하는 출력은 새 탭에서 PDF를 보는 것입니다. 새 탭에서 호출 한 결과가 아닙니다.