Hi: The way we did is 1. Get the reference to the pdf file 2. Set the content type to application/pdf, so that if the user's browser has a association with the pdf file, it can launch acrobat reader 3. Output the stream That is about it. Nic, I am interested in knowing about the XML tools. Can you give some reference. Regards Gunjan > ---------- > From: Nic Ferrier[SMTP:[EMAIL PROTECTED]] > Reply To: A mailing list for discussion about Sun Microsystem's Java > Servlet API Technology. > Sent: Thursday, May 11, 2000 12:46 PM > To: [EMAIL PROTECTED] > Subject: Re: Serlvet to creating PDF files > > >>> "Bragg, James" <[EMAIL PROTECTED]> 11-May-00 5:42:19 PM >>> > > >Can anyone tell me the best way to generate a PDF > >from a servlet. > > I'm fairly sure there are XML (ie: XSL) tools for doing this... > > But since you don't say what you want to generate from, or in what > way it's difficult to be helpfull. > > Note also that I imagine that you can generate a PDF in a servlet in > the same way you would generate a PDF anywhere else... you could even > do it with command line tools by calling them with Runtime. > > > > Nic Ferrier > > __________________________________________________________________________ > _ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
