Md Sagri wrote: > How can I create a document on the fly without needing to specify a > fileOutputStream > >protected *PdfWriter*(PdfDocument ><file:///home/quayum/Desktop/docs.tar.gz_FILES/com/lowagie/text/pdf/PdfDocument.html> > document, > OutputStream > <http://java.sun.com/j2se/1.3/docs/api/java/io/OutputStream.html> os) > > Constructs a |PdfWriter|. > Remark: a PdfWriter can only be constructed by calling the method > |getInstance(Document document, OutputStream os)|. > > > I dont want to save the file, but just to send it. Is there an > alternative to achive this. Please let me know
You probably haven't noticed it, but you have answered your own question. Your question is about writing to a FileOutputStream. You want to avoid that. Then you show the javadoc generated API information of PdfWriter that explains you don't have to write to a FileOutputStream, you can write to any OutputStream (ServletOutputStream, ByteArrayOutputStream, System.out,...) Of course there are some pitfalls, but you'll find the workarounds here: http://itextdocs.lowagie.com/tutorial/general/webapp/ br, Bruno ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
