Quoting lily hu <[EMAIL PROTECTED]>: > Hello, Mr. Lowagie,
Recently I start to get more personal mails, please don't write me personally but post all your questions to the mailing list. > In yout tutorial, you always use Servlet to create a pdf content. The > code is like: > > ServletOutputStream outServlet = res.getOutputStream(); > baos.writeTo(outServlet); > > In my applicat5ion, I need to create pdf output on-the-fly in JSP. This is not true. You don't NEED to create PDF output in JSP. Read every book on JSP and you will find the same remark: JSP is NOT SUITED for producing binary data. Internally JSPs are compiled to Servlets, so why not write the Servlet to begin with. Believe me, it is MUCH EASIER and LESS ERROR PRONE to write the PDF producing Servlet than the JSP. > How can I do that instead of writing to servlet? It can be done this way: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/itext/www/examples/pdf.jsp REMARK THAT YOU MAY NOT ADD ANY NEWLINES OR SPACES!!! This is very important because all the indentation or characters between a '>' and a '<' are added to the binary file and this results in a corrupt PDF file. Bruno ------------------------------------------------------- This sf.net email is sponsored by: Jabber - The world's fastest growing real-time communications platform! Don't just IM. Build it in! http://www.jabber.com/osdn/xim _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions