row = 1;
int column = 1;
while (iOptions.hasNext()){
// working with a single option
OptionData o = iOptions.next();
String optionName = o.getTitle();
if ((optionName==null)||(optionName.length()==0)) optionName = "No (Option) name provided.";
//Paragraph optionNamePar = new Paragraph(optionName, fntRomanOptionTitle);
Paragraph optionNamePar = new Paragraph(optionName, fntRomanOptionTitle);
ListItem item = new ListItem(optionNamePar);
String optionDescription = o.getDescription();
if ((optionDescription!=null)&&(optionDescription.length()!=0)) {
//Paragraph optionDescriptionPar = new Paragraph("\r\n" + optionDescription, fntRomanOptionDescription);
Paragraph optionDescriptionPar = new Paragraph("\r\n" + optionDescription, fntRomanOptionDescription);
optionDescriptionPar.setSpacingAfter(12);
//optionDescriptionPar.setSpacingBefore(0);
item.add(optionDescriptionPar);
}
itemize.add(item);
// prepare the table
iActors = data.getColumns().iterator();
row = 0;
//System.out.println("option: " + o.getTitle());
Cell optionNameHeader = new Cell(o.getTitle());
//optionNameHeader.rotate();
optionNameHeader.setHeader(true);
//cell.setColspan(3);
table.addCell(optionNameHeader,row++,column);
table.endHeaders();