Dear Aspose Support Team,
Conversion from PDF to text is not supported for superscript and subscript formats using the following code snippet for version 23.1:
public String convertToText(Document pdfDocument, int page…...append(fragment.getText()); } log...extractedText.append("<sup>").append(fragment.getText()).append("</sup>");...