You need 2 thoughts, first the browser plug-in installed in the browser, and the second to set the content placement header as built-in respose, otherwise the browser will try to load it.
response.setHeader("Content-Disposition","inline; filename=\"file.pdf\"");
, /pdf , iText bytearray .
: , , , , pdf, pdf pdf.