How To Put Image And Text Inside 1 Cell In Itext Android Table?
How to put image and text below/above it? I tried below code but I only can see 'Test 1' and 'Test 3' private void createTable(Paragraph paragraph, Document document){ PdfPTabl
Solution 1:
You should try this:
PdfPTabletable=newPdfPTable(2);
PdfPCellcell=newPdfPCell();
Paragraphparagraph1=newParagraph();
paragraph1.add(textAnswer);
cell.addElement(paragraph1);
cell.addElement(newParagraph("Test 1"));
cell.addElement(imageAnswer);
cell.addElement(newParagraph("Test 3"));
table.addCell(cell);
If that doesn't work, please provide a SSCCE that reproduces the problem in Java.
Post a Comment for "How To Put Image And Text Inside 1 Cell In Itext Android Table?"