Hi,
I have the same problem.
I have realised it with this statement:
PdfWriter.getInstance(document, new FileOutputStream(ausgabe.pdf));

But how can I save it on a server or my local space? Because with my
version, the pdf is generated on the fly, but isn't saved.




Alexis Pigeon wrote:
> 
> Hi Ramesh,
> 
> On 30/10/2007, ramesh totakoori <rtotako...@yahoo.com> wrote:
>>
>> Hi Team,
>>
>> I am able to generate the PDF and open in the browser using the follwing
>> code
> 
> [...]
> 
>> 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.
> 
> You'll have to write your bytes to a FileOutputStream :
> 
> PdfWriter.getInstance(document, new FileOutputStream(<path>));
> 
> HTH,
> alexis
> 
> -------------------------------------------------------------------------
> 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/
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Saving-PDF-to-server-tp13490284p27142181.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to