public class SlideShowExtractor<S extends Shape<S,P>,P extends TextParagraph<S,P,? extends TextRun>> extends 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
|
java.lang.Object |
getDocument()
Returns opened document
|
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) |
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
|
close, setFilesystem
public final java.lang.Object getDocument()
getDocument
in class POITextExtractor
public void setSlidesByDefault(boolean slidesByDefault)
public void setNotesByDefault(boolean notesByDefault)
public void setCommentsByDefault(boolean commentsByDefault)
public void setMasterByDefault(boolean masterByDefault)
public POITextExtractor getMetadataTextExtractor()
POITextExtractor
getMetadataTextExtractor
in class POITextExtractor
public java.lang.String getText()
getText
in class POITextExtractor
public java.util.List<? extends ObjectShape<S,P>> getOLEShapes()
@Deprecated 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 matterpublic 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 matterCopyright 2020 The Apache Software Foundation or its licensors, as applicable.