Hi everyone, I'm using this example https://svn.apache.org/repos/asf/xmlgraphics/fop/tags/fop-1_0/src/java/org/apache/fop/servlet/FopServlet.java
I generate a pdf file from a XSLT and XML file and this works, but I need to generate a RTF file too. I added this method to the source file: *private void sendRTF(byte[] content, HttpServletResponse response) throws IOException { //Send the result back to the client response.setContentType("application/rtf"); response.setContentLength(content.length); response.getOutputStream().write(content); response.getOutputStream().flush(); }* and I changed this code line *Fop fop = fopFactory.newFop(MimeConstants.MIME_RTF, foUserAgent, out);* I don't know if this forms is right, because when I run the example my output file is a unknow file and I need to save it like a ".rtf" and this is unformatted file and the PDF file works fine. Do you know if this method is right or do You have a example? Thanks -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Generate-RTF-file-with-servlet-tp40227.html Sent from the FOP - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org