Hello, 

Basically you write it to the stream and then, this is what i do in my
VB.NET Code

                                Response.ClearContent()
                        Response.ClearHeaders()
                        Response.ContentType = "application/pdf"
                        Response.AddHeader("Content-Dispoition",
"inline; filename=Floorplan.pdf")
                        Response.AddHeader("Content-length",
content4.Length)
                        Response.OutputStream.Write(content4, 0,
content4.Length)
                        Response.AppendHeader("accept-ranges", "bytes")
                        Response.OutputStream.Flush()
                        Response.OutputStream.Close()

content4 is the byte() array

kalpesh

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Dayal
Murukutla
Sent: Thursday, August 26, 2004 1:37 PM
To: 'Tom Chiou'; [EMAIL PROTECTED]
Subject: RE: [iText-questions] sample code for writing PDF to screen
instead of to a file


System.out.println ??? :-)

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom
Chiou
Sent: Thursday, August 26, 2004 11:42 AM
To: [EMAIL PROTECTED]
Subject: [iText-questions] sample code for writing PDF to screen instead
of to a file

Hi again,

I am going through the tutorial and looking at samples that I downloaded
from 
lowagie.com.  All of the samples that I went through so far writes the
PDF to a 
file and I am wondering if there is a way to write it to the screen.  I
would 
imagine instead of using FileOutputStream class, use some other type of 
OutputStream class.. right?  Please help.. thank you so much.

Tom



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to