When closing an instance of RtfWriter by calling its close() method, the content is written once again to the outputstream before it is flushed. The code snippet below outputs most of the document twice, but works fine when the last line is omitted
Document document = new Document(PageSize.A4); ByteArrayOutputStream buf = new ByteArrayOutputStream(); RtfWriter writer = RtfWriter.getInstance(document, buf); document.open(); document.close(); writer.close(); // when omitted, everythig works fine. Best regards, Benny Pedersen ------------------------------------------------------- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
