I´m trying to open a pdf that I have created using iText library in my browser, but it fails. This is the code I´m using to send to browser
File file = n
Put the filename in double quote "
"
response.setHeader("Content-Disposition","attachment; filename=\"" + attachmentName + "\"");