throws IOException {
for (int i = 0; i < nItems; i++) {
final RtfListItem item = list.newListItem();
for (int j = 0; j <= i; j++) {
final RtfParagraph para = item.newParagraph();
para.newText("List " + listIndex + ", item " + i + ", paragraph " + j);
if (i == 0 && j == 0) {
final String txt = "This item takes more than one line to check word-wrapping.";
para.newText(". " + "This list must have " + nItems
+ " items. " + txt + " " + txt + " " + txt);
}