public class SlideShowExtractor<S extends Shape<S,P>,P extends TextParagraph<S,P,? extends TextRun>> extends java.lang.Object implements POITextExtractor
| Constructor and Description |
|---|
SlideShowExtractor(SlideShow<S,P> slideshow) |
| Modifier and Type | Method and Description |
|---|---|
java.util.BitSet |
getCodepoints(java.lang.String typeface,
java.lang.Boolean italic,
java.lang.Boolean bold)
Deprecated.
|
com.zaxxer.sparsebits.SparseBitSet |
getCodepointsInSparseBitSet(java.lang.String typeface,
java.lang.Boolean italic,
java.lang.Boolean bold)
Extract the used codepoints for font embedding / subsetting.
|
SlideShow<S,P> |
getDocument()
Returns opened document
|
SlideShow<S,P> |
getFilesystem() |
POITextExtractor |
getMetadataTextExtractor()
Returns another text extractor, which is able to
output the textual content of the document
metadata / properties, such as author and title.
|
java.util.List<? extends ObjectShape<S,P>> |
getOLEShapes() |
java.lang.String |
getText()
Fetches all the slide text from the slideshow, but not the notes, unless
you've called setSlidesByDefault() and setNotesByDefault() to change this
|
java.lang.String |
getText(Slide<S,P> slide) |
boolean |
isCloseFilesystem() |
void |
setCloseFilesystem(boolean doCloseFilesystem) |
void |
setCommentsByDefault(boolean commentsByDefault)
Should a call to getText() return comments text? Default is no
|
void |
setMasterByDefault(boolean masterByDefault)
Should a call to getText() return text from master? Default is no
|
void |
setNotesByDefault(boolean notesByDefault)
Should a call to getText() return notes text? Default is no
|
void |
setSlidesByDefault(boolean slidesByDefault)
Should a call to getText() return slide text? Default is yes
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic SlideShow<S,P> getDocument()
getDocument in interface POITextExtractorpublic void setSlidesByDefault(boolean slidesByDefault)
public void setNotesByDefault(boolean notesByDefault)
public void setCommentsByDefault(boolean commentsByDefault)
public void setMasterByDefault(boolean masterByDefault)
public POITextExtractor getMetadataTextExtractor()
POITextExtractorgetMetadataTextExtractor in interface POITextExtractorpublic java.lang.String getText()
getText in interface POITextExtractorpublic java.util.List<? extends ObjectShape<S,P>> getOLEShapes()
@Deprecated @Removal(version="6.0.0") public java.util.BitSet getCodepoints(java.lang.String typeface, java.lang.Boolean italic, java.lang.Boolean bold)
getCodepointsInSparseBitSet(String, Boolean, Boolean)typeface - the typeface/font family of the textruns to examineitalic - use true for italic TextRuns, false for non-italic ones and
null if it doesn't matterbold - use true for bold TextRuns, false for non-bold ones and
null if it doesn't matter@Internal public com.zaxxer.sparsebits.SparseBitSet getCodepointsInSparseBitSet(java.lang.String typeface, java.lang.Boolean italic, java.lang.Boolean bold)
typeface - the typeface/font family of the textruns to examineitalic - use true for italic TextRuns, false for non-italic ones and
null if it doesn't matterbold - use true for bold TextRuns, false for non-bold ones and
null if it doesn't matterpublic void setCloseFilesystem(boolean doCloseFilesystem)
setCloseFilesystem in interface POITextExtractordoCloseFilesystem - true (default), if underlying resources/filesystem should be
closed on POITextExtractor.close()public boolean isCloseFilesystem()
isCloseFilesystem in interface POITextExtractortrue, if resources/filesystem should be closed on POITextExtractor.close()public SlideShow<S,P> getFilesystem()
getFilesystem in interface POITextExtractorCopyright 2022 The Apache Software Foundation or its licensors, as applicable.