I haven't done anything with iText, but from the FAQ on their site it looks
like you can do something like this:

        response.setContentType( "application/pdf" );
        OutputStream out = response.getOutputStream();
        generate_pdf( out );
        out.close();

The specific FAQ entry talks about errors with the IE plugin.

--mikej
-=-----
mike jackson
[EMAIL PROTECTED]

> -----Original Message-----
> From: Ravindra K. Bhat [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 09, 2002 2:28 PM
> To: Tomcat Users List
> Subject: Re: Stuck on Adobe Acrobat/iText
>
>
> Hi:
>
> Follow up question:
>
> How do I tell my servlet to render the output in PDF format on the fly?  I
> gone through the docs and it does not show me how to generate my servlet
> output as an pdf.  I've generated pdf from the command prompt but am still
> trying to figure out how a servlet output can be rendered into a
> pdf..please help.
>
> Thanks
>
>
>
>
> On Mon, 8 Apr 2002, hemant wrote:
>
> > Use  Cocoon for a FOP based solution . If you want to keep
> things simple,
> > use iText . Although it was not sophisticated/XML/XSL based it did an
> > extremely good job when it generated PDF. It uses java classes
> to render pdf
> > docs. I have successfully incorporated it in my webapp.
> >
> > http://www.lowagie.com/iText/
> >
> > Thanks to Bruno Lowagie and Paulo Soares
> >
> > Regards
> > hemant
> >
> >
> > ----- Original Message -----
> > From: "Ravindra K. Bhat" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Monday, April 08, 2002 5:39 PM
> > Subject: Adobe Acrobat
> >
> >
> > > Hi:
> > > How do I render my html pages to pdf for printing.  My
> servelet generated
> > > html table is too wide and columns get cut off if I print
> directly using
> > > the print icon on the browser...
> > >
> > > Thanks
> > >
> > >
> > >
> > > --
> > > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > > For additional commands: <mailto:[EMAIL PROTECTED]>
> > > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to