xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edi4988 <edi4...@gmail.com>
Subject Generate RTF file with servlet
Date Thu, 13 Mar 2014 20:09:45 GMT
Hi everyone,

I'm using this example

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

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?


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-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

View raw message