Hi Team,

I am able to generate the PDF and open in the browser using the follwing code

Document document = new Document();
response.setContentType("application/pdf");
response.setHeader("Expires", "0");
response.setHeader("Cache-Control", "must-revalidate, post-check=0, 
pre-check=0");
response.setHeader("Pragma", "public");
PdfWriter.getInstance(document, response.getOutputStream());

But I need to save the file to server instead of opening it in browser, could 
you pls. provide some sample,  I tried in the forums but unable to find 
something.  

Thanks,

Ramesh

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to