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, wait
close
public SlideShow<S,P> getDocument()
getDocument
in interface 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 interface POITextExtractor
public java.lang.String getText()
getText
in interface 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 matterpublic void setCloseFilesystem(boolean doCloseFilesystem)
setCloseFilesystem
in interface POITextExtractor
doCloseFilesystem
- true
(default), if underlying resources/filesystem should be
closed on POITextExtractor.close()
public boolean isCloseFilesystem()
isCloseFilesystem
in interface POITextExtractor
true
, if resources/filesystem should be closed on POITextExtractor.close()
public SlideShow<S,P> getFilesystem()
getFilesystem
in interface POITextExtractor
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.