use a ByteArrayOutputStream instead of a FileOutputStream

ByteArrayOutputStream baos = new ByteArrayOutputStream();
PdfWriter.getInstance(document, baos);

----- Original Message ----- 
From: "Pasha Mahaboob" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 23, 2002 11:30 AM
Subject: [iText-questions] Open the PDF file


> Hi Paulo Soares & Bruno Lowagie,
> 
> Step 2:
> Creates a Writer that listens to this document and writes the document
> to the OutputStream of your choice:
> PdfWriter.getInstance(document, new FileOutputStream("Chap0101.pdf"));
> 
> Step 3:
> Opens the document:
> document.open();
> 
> Here the Chap0101.pdf file is creating in some directory path and then
> its opening the PDF file from the path where it is created. Now the
> question: Is it possible to open the PDF file from memory without
> creating the PDF file into our directory path. I need to open the PDF
> file, but I don't want to create in my folder/directory path.
> 
> Thanks & Regards,
> Mahaboob Pasha
> 
> 
> _______________________________________________________________
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to