How do I pass a value of an object with itext [closed]

1

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.

link

link

...

    
asked by anonymous 01.09.2015 / 18:05

0 answers