1
iam은 이미 내 pdf보기를 완료했으나 현재 동적으로보기 PDF 파일 팝업 창이 필요하지 않습니다. 옵션을 저장하고 옵션을 저장하지 마십시오. Java에서 예제를 제공하십시오. iam이 코드를 사용하십시오jsp에서 팝업 U 창에 PDF 파일을 표시하는 방법
File f= new File(file);
if(f.exists()){
ServletOutputStream op= response.getOutputStream();
response.reset();
if(check==1){
response.setContentType("application/pdf");
}else{
response.setContentType(content);
}
// response.setHeader("Content-disposition","attachment; filename=" +fileName);
byte[] buf = new byte[4096];
int length;
DataInputStream in = new DataInputStream(new FileInputStream(f));
while ((in != null) && ((length = in.read(buf)) != -1)){
op.write(buf,0,length);
}
in.close();
op.flush();
op.close();
}
입니다. http://stackoverflow.com/questions/19591425/add-pdf-and-tiff-to-the-same-pdf-document-and-display-it-in-the-browser?noredirect=1#comment29331909_19591425 – DJR
답변 됨 여기에. 내 pdf가 다른 창에서 열립니다. http://stackoverflow.com/questions/19591425/add-pdf-and-tiff-to-the-same-pdf-document-and-display-it-in-the-browser?noredirect=1# comment29331909_19591425 – DJR