Step1:
I have created a pdf which have subscript ,superscript ,underline ,strikethrough
Code for creating a pdf:
public void createNewDocument(){
Document document = new Document();
//Add page
Page page =…...are not working as expected boolean subscript= fragment.getTextState()...getTextState().isSubscript(); boolean superscript= fragment.getTextState()...