Avatar

Level 8

I'm not sure I completely understand what you are trying to do.  Since the FormServlet renders the PDF, and returns it to the calling servlet as an InputStream, why not just read it into a byte[] object and send it to the response object?  I'm not clear on why you are using iText to re-render the document.