0

I am using Apache POI's HSLFSlideShowand extracting the paragraphs individually using:

String paragraph = currentSlide.getTextParagraphs().get(i).toString();

However I am unable to figure out how to extract formatting information, such as bold, italic, text size and typeface.

I did come across the CharacterRun, which seems to have the features I need, however it does not seem to be applicable to HSLFSlideShow (unless I'm using it wrong).

My overall task can be found here.

o2tha1
  • 11
  • 5
  • What's wrong with the getter methods on [HSLFTextParagraph](https://poi.apache.org/apidocs/org/apache/poi/hslf/usermodel/HSLFTextParagraph.html) like [getFontSize](https://poi.apache.org/apidocs/org/apache/poi/hslf/usermodel/HSLFTextParagraph.html#getDefaultFontSize--) and friends? – Gagravarr Jun 06 '18 at 10:44
  • From what I can see, it doesn't seem to support more options other than size. Like I mentioned above, I am especially interested in bold or italic, typeface and I'll add colour in now, at the very least. – o2tha1 Jun 06 '18 at 11:57

0 Answers0