I want to show a Save As dialog when I send the PDF file which is generated by iText in a servlet. How can I achieve this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ok I solved my problem!! I found on this page :
http://www.geek-tutorials.com/java/itext/servlet_jsp_output_pdf.php
The method is to write directly with getOutputStream() (not in file path) and send content type header!
It was so simple…