1 17 18 19 20 21 27 28 package org.apache.fop.render.rtf.rtflib.testdocs; 29 30 import java.io.IOException ; 31 32 import org.apache.fop.render.rtf.rtflib.rtfdoc.RtfDocumentArea; 33 import org.apache.fop.render.rtf.rtflib.rtfdoc.RtfSection; 34 import org.apache.fop.render.rtf.rtflib.rtfdoc.RtfParagraph; 35 36 39 40 class SimpleDocument 41 extends TestDocument { 42 43 protected void generateDocument(RtfDocumentArea rda, RtfSection sect) 44 throws IOException { 45 sect.newParagraph().newText("First paragraph of the simple RTF test document."); 46 47 final RtfParagraph para = sect.newParagraph(); 48 para.newText("Second paragraph of simple RTF test document.\n"); 49 for (int i = 0; i < 242; i++) { 50 para.newText("This is string " + i); 51 para.newLineBreak(); 52 } 53 } 54 } | Popular Tags |