hi,
requirement: apply super script to a text.
I am trying to add super script to text in a table.
as per API documentation, currently superscript can apply only to paragraph.
So we created an object IPortion which is added to paragraph portion. During this process, i am loosing the original style.
how to set textframe style to paragraph?
rowstart =1
itextStyle style = iTable.getRows().getitem(rowStart).getItem(0).getTextFrame().getTextFrameformat().getTextStyle();
iTable.getRows().getItem(rowStart).getItem(0).getTextFrame().getParagraphs().clear();
created a portion
created a paragraph
set the text to paragraph
add portion to paragraph.
Paragraph para = new Paragraph();
para.setText(“Dummy”);
para.getPortions().add(superPortion);
iTables.getRows().getItem(rowStart).getItem(0).getTextFrame).getParagraphs().add(para)
how to apply the style to newly created Paragraph(para) object?
Please suggest the way to apply style.