Hi
i have a web project from which when user clicks a link a new window is
opened and the pdf is shown (using itext). I use the following code to
achieve this:
userSession1.setContentType("application/pdf");
userSession1.setHeader("Content-Disposition",
"inline;filename=\"" +
fileNM + ".pdf\"");
However the issue is that when the new window is opened and pdf is
shown..when user click file - > save is in adobe..the file name doesnt show.
Interesting thing is that if user right clicks on the link and clicks save
as then the file name IS showing.
I believe its showing with right click 'save as' because of the MIME
settings in my code. I am just wondering if there is a function that would
let me set up the name for a pdf file when i am creating it with itext.
Thanks!!
--
View this message in context:
http://www.nabble.com/set-FileName-for-pdf-tf4319189.html#a12299415
Sent from the iText - General mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/