Hi team,
How to get the font properties(font size, font color & font type) of a text in a table cell.I want to apply the font properties to a newly created node after the table.
Code:
Paragraph p = new Paragraph(doc);
Run run = new Run(doc, “Any String” );
run.getFont().setSize(10);
run.getFont().setStrikeThrough(false);
run.getFont().setColor(Color.BLACK);
p.getRuns().add(run);
p.appendChild(new BookmarkEnd(doc, “MyBookmark”));
In this, the font properties of “Any String” should be same as the “Font property of a text in any table cell of document”. How to achieve this dynamically rather to apply the font size and color every time?
Regards,
Gomathi. N.