I have the following code snippet:
Document doc = new Document(PageSize.A4.rotate());
while(iteratorRow.hasNext()){
Object valorCelulaRow = iteratorRow.next();
if ( valorCelulaRow != null ) {
Paragraph p = new paragraph();
p.add ( valueCellRow.toString() );
doc.Add( ( Element ) p ); // ERRO 1 ALTERNATIVA
doc.Add( p ); //ERRO - 2 ALTERNATIVA
}
}
I looked in the itext guide, but I did not find a solution to this problem.
...