Hello,
Could you please help with one issue?
how font applied to text can be recognized and determined among others?
There are FontEntity and Presentation (*.ppt) (aspose.slides-8.6.0)
We want to see all text of this font. How to do it?
FontEntity fntEnt
int i0 = fntEnt.getFontId();
String name = fntEnt.getFontName();
ITextBox[] textBoxesPPT = SlideUtil.getAllTextBoxes(pres, true);
StringBuilder allText = new StringBuilder();
// Loop through the Array of TextFrames
for (int i = 0; i < textBoxesPPT.length; i++) {
// Loop through paragraphs in current ITextFrame
for (Paragraph para : textBoxesPPT[i].getParagraphs()) {
// Loop through portions in the current IParagraph
for (Portion port : para.getPortions()) {
if (???) {
continue;
}
else {
allText.append(port.getText());
}
}
}
}
I’ve read https://docs.aspose.com/slides/java/manage-fonts/
but can’t apply it because neither Paragraph nor Portion has not method .getPortionFormat() or getFont(), only getFontIndex
Thank you in advance.