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.
(已弃用。使用 getCodepointsInSparseBitSet(String, Boolean, Boolean))
|
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
(从幻灯片中获取所有幻灯片文本,但不获取注释,除非您调用了 setSlidesByDefault() 和 setNotesByDefault() 来更改它)
|
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
(调用 getText() 是否应该返回评论文本?默认为否)
|
void |
setMasterByDefault(boolean masterByDefault)
Should a call to getText() return text from master? Default is no
(调用 getText() 是否应该从 master 返回文本?默认为否)
|
void |
setNotesByDefault(boolean notesByDefault)
Should a call to getText() return notes text? Default is no
(调用 getText() 是否应该返回注释文本?默认为否)
|
void |
setSlidesByDefault(boolean slidesByDefault)
Should a call to getText() return slide text? Default is yes
(调用 getText() 是否应该返回幻灯片文本?默认为是)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public SlideShow<S,P> getDocument()
getDocument
in interface
POITextExtractor
(接口 POITextExtractor 中的 getDocument)
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
(接口 POITextExtractor 中的 getMetadataTextExtractor)
public java.lang.String getText()
getText
in interface
POITextExtractor
(接口 POITextExtractor 中的 getText)
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 examine
(typeface - 要检查的 textruns 的字体/字体系列)
italic
- use
true
for italic TextRuns,
false
for non-italic ones and
null
if it doesn't matter
(斜体 - 对斜体 TextRuns 使用 true,对非斜体使用 false,如果无关紧要则使用 null)
bold
- use
true
for bold TextRuns,
false
for non-bold ones and
null
if it doesn't matter
(粗体 - 对粗体 TextRuns 使用 true,对非粗体使用 false,如果无关紧要则使用 null)
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 examine
(typeface - 要检查的 textruns 的字体/字体系列)
italic
- use
true
for italic TextRuns,
false
for non-italic ones and
null
if it doesn't matter
(斜体 - 对斜体 TextRuns 使用 true,对非斜体使用 false,如果无关紧要则使用 null)
bold
- use
true
for bold TextRuns,
false
for non-bold ones and
null
if it doesn't matter
(粗体 - 对粗体 TextRuns 使用 true,对非粗体使用 false,如果无关紧要则使用 null)
public void setCloseFilesystem(boolean doCloseFilesystem)
setCloseFilesystem
in interface
POITextExtractor
(接口 POITextExtractor 中的 setCloseFilesystem)
doCloseFilesystem
-
true
(default), if underlying resources/filesystem should be closed on
POITextExtractor.close()
(doCloseFilesystem - true(默认),如果底层资源/文件系统应该在 POITextExtractor.close() 上关闭)
public boolean isCloseFilesystem()
isCloseFilesystem
in interface
POITextExtractor
(接口 POITextExtractor 中的 isCloseFilesystem)
true
, if resources/filesystem should be closed on
POITextExtractor.close()
(true,如果资源/文件系统应该在 POITextExtractor.close() 上关闭)
public SlideShow<S,P> getFilesystem()
getFilesystem
in interface
POITextExtractor
(接口 POITextExtractor 中的 getFilesystem)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.