Unfortunately it depends on the version and build of IE you are working
with.  See the itext FAQ and previous discussions in the mailing list
for more details.

>-----Original Message-----
>From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
>Sent: Friday, December 13, 2002 9:49 AM
>To: [EMAIL PROTECTED]
>Subject: Re: [iText-questions] Newbie servlet won't output anything
>
>
>Aravind:  IE is definitely opening a dynamically generated PDF 
>for me.  I
>didn't have to do any type of button or anything; I just put 
>the address of
>the servlet in IE's address bar and the servlet outputs the dynamically
>created PDF to IE by automatically opening the Acrobat plug in.
>Take care,
>Kenny
>
>----- Original Message -----
>From: "SRIDHARAN Aravind" <[EMAIL PROTECTED]>
>To: "'Kenny G. Dubuisson, Jr.'" <[EMAIL PROTECTED]>
>Sent: Friday, December 13, 2002 9:39 AM
>Subject: RE: [iText-questions] Newbie servlet won't output anything
>
>
>> Kenny,
>>
>> My approach, at first, made me an icon of the Acrobat Reader on IE.
>> The page remained blank.
>> I got an impression that IE can't open dynamically generated PDF's.
>> Am I right?
>> Later I got the other way of getting a PDF on IE.
>>
>> Aravind
>>
>> > ----------
>> > From: Kenny G. Dubuisson, Jr.[SMTP:[EMAIL PROTECTED]]
>> > Sent: Friday, December 13, 2002 8:27 PM
>> > To: [EMAIL PROTECTED]
>> > Subject: Re: [iText-questions] Newbie servlet won't output anything
>> >
>> > Aravind:  Let me explain what I'm doing and maybe that 
>will answer your
>> > question.  I'm currently working on a proof-of-concept to 
>see if iText
>can
>> > do all we want to do.  Since this is just a 
>proof-of-concept, the web
>page
>> > that I would use to construct the information that would 
>dynamically
>build
>> > the page is being bypassed at this step;  I just currently call my
>servlet
>> > from the IE address bar like 
>https://www.webserver.com/servlet/PDFTest2.
>> > But the servlet is generating the PDF on the fly and 
>putting it directly
>> > in
>> > the Acrobat plugin in IE (not writing to a file or anything).
>> >
>> > Hope this info helps...let me know if you need more info.
>> > Kenny
>> >
>> > ----- Original Message -----
>> > From: "SRIDHARAN Aravind" <[EMAIL PROTECTED]>
>> > To: "'Kenny G. Dubuisson, Jr.'" <[EMAIL PROTECTED]>
>> > Sent: Friday, December 13, 2002 8:47 AM
>> > Subject: RE: [iText-questions] Newbie servlet won't output anything
>> >
>> >
>> > > Kenny,
>> > > I just want to know whether your servlet generates a PDF 
>on IE on the
>> > fly.
>> > (
>> > > say on a press of a button )
>> > > Thank you.
>> > > Aravind
>> > >
>> > > PS: Will it work in IE 5 ?
>> > > > ----------
>> > > > From: Kenny G. Dubuisson, Jr.[SMTP:[EMAIL PROTECTED]]
>> > > > Sent: Friday, December 13, 2002 7:39 PM
>> > > > To: [EMAIL PROTECTED]
>> > > > Subject: Re: [iText-questions] Newbie servlet won't 
>output anything
>> > > >
>> > > > Aravind:  Below is the text of a simple servlet that 
>creates a PDF
>> > that
>> > > > works great in Acrobat Reader for IE.  Please let me 
>know if you
>have
>> > any
>> > > > questions about it.
>> > > > Kenny
>> > > >
>> > > > import java.io.*;
>> > > > import javax.servlet.*;
>> > > > import javax.servlet.http.*;
>> > > > import com.lowagie.text.*;
>> > > > import com.lowagie.text.pdf.PdfWriter;
>> > > >
>> > > > public class PDFTest extends HttpServlet
>> > > > {
>> > > >    public void doGet(HttpServletRequest request,
>> > > >       HttpServletResponse response) throws ServletException,
>> > IOException
>> > > >    {
>> > > >       OutputStream out = response.getOutputStream();
>> > > >       ByteArrayOutputStream baos = new ByteArrayOutputStream();
>> > > >       try
>> > > >       {
>> > > >          Document document = new 
>Document(PageSize.LETTER, 0, 0, 0,
>> > 0);
>> > > >          PdfWriter.getInstance(document, baos);
>> > > >          document.open();
>> > > >          Phrase companyPhrase = new Phrase("My Company, Inc.",
>> > > >             new Font(Font.TIMES_NEW_ROMAN, 8));
>> > > >          Paragraph companyPara = new Paragraph(companyPhrase);
>> > > >          companyPara.setAlignment(Paragraph.ALIGN_CENTER);
>> > > >          document.add(companyPara);
>> > > >          document.close();
>> > > >          response.setContentType("application/pdf");
>> > > >          response.setContentLength(baos.size());
>> > > >          response.setBufferSize(baos.size());
>> > > >          baos.writeTo(out);
>> > > >          out.flush();
>> > > >       }
>> > > >       catch (Exception e)
>> > > >       {
>> > > >          System.err.println(e.toString());
>> > > >       }
>> > > >       finally
>> > > >       {
>> > > >          out.close();
>> > > >       }
>> > > >    }
>> > > > }
>> > > >
>> > > >
>> > > > ----- Original Message -----
>> > > > From: "SRIDHARAN Aravind" <[EMAIL PROTECTED]>
>> > > > To: "'Kenny G. Dubuisson, Jr.'" <[EMAIL PROTECTED]>
>> > > > Sent: Thursday, December 12, 2002 10:00 PM
>> > > > Subject: RE: [iText-questions] Newbie servlet won't 
>output anything
>> > > >
>> > > >
>> > > > > Could you let me in brief the way you did for IE?
>> > > > > Thank you.
>> > > > >
>> > > > > Aravind
>> > > > >
>> > > > > > ----------
>> > > > > > From: Kenny G. Dubuisson, Jr.[SMTP:[EMAIL PROTECTED]]
>> > > > > > Sent: Thursday, December 12, 2002 9:12 PM
>> > > > > > To: [EMAIL PROTECTED]
>> > > > > > Subject: Re: [iText-questions] Newbie servlet won't output
>> > anything
>> > > > > >
>> > > > > > Yes I did, thanks for asking.
>> > > > > > Kenny
>> > > > > >
>> > > > > > ----- Original Message -----
>> > > > > > From: "SRIDHARAN Aravind" <[EMAIL PROTECTED]>
>> > > > > > To: "'Kenny G. Dubuisson, Jr.'" <[EMAIL PROTECTED]>
>> > > > > > Sent: Thursday, December 12, 2002 9:37 AM
>> > > > > > Subject: RE: [iText-questions] Newbie servlet won't output
>> > anything
>> > > > > >
>> > > > > >
>> > > > > > >
>> > > > > > > Hi,
>> > > > > > > Have you got the solution for generating a PDF 
>report using
>> > servlet
>> > > > > > > in IE?
>> > > > > > > Just now I have read your mail.
>> > > > > > > I have a solution for it.
>> > > > > > > It is easy and simple.
>> > > > > > > Once I had enough struggle to generate a PDF 
>using servlet in
>> > IE.
>> > > > > > >
>> > > > > > > Tell me....
>> > > > > > >
>> > > > > > > Awaiting your reply.
>> > > > > > > Aravind
>> > > > > > >
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > > > -------------------------------------------------------
>> > > > > > This sf.net email is sponsored by:
>> > > > > > With Great Power, Comes Great Responsibility
>> > > > > > Learn to use your power at OSDN's High Performance 
>Computing
>> > Channel
>> > > > > > http://hpc.devchannel.org/
>> > > > > > _______________________________________________
>> > > > > > iText-questions mailing list
>> > > > > > [EMAIL PROTECTED]
>> > > > > > 
>https://lists.sourceforge.net/lists/listinfo/itext-questions
>> > > > > >
>> > > > >
>> > > >
>> > > >
>> > > >
>> > > > -------------------------------------------------------
>> > > > This sf.net email is sponsored by:
>> > > > With Great Power, Comes Great Responsibility
>> > > > Learn to use your power at OSDN's High Performance 
>Computing Channel
>> > > > http://hpc.devchannel.org/
>> > > > _______________________________________________
>> > > > iText-questions mailing list
>> > > > [EMAIL PROTECTED]
>> > > > https://lists.sourceforge.net/lists/listinfo/itext-questions
>> > > >
>> > >
>> >
>> >
>> >
>> > -------------------------------------------------------
>> > This sf.net email is sponsored by:
>> > With Great Power, Comes Great Responsibility
>> > Learn to use your power at OSDN's High Performance 
>Computing Channel
>> > http://hpc.devchannel.org/
>> > _______________________________________________
>> > iText-questions mailing list
>> > [EMAIL PROTECTED]
>> > https://lists.sourceforge.net/lists/listinfo/itext-questions
>> >
>>
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:
>With Great Power, Comes Great Responsibility 
>Learn to use your power at OSDN's High Performance Computing Channel
>http://hpc.devchannel.org/
>_______________________________________________
>iText-questions mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/itext-questions
>


-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to