@Internal public final class PicturesTable extends java.lang.Object
Constructor and Description |
---|
PicturesTable(HWPFDocument _document, byte[] _dataStream, byte[] _mainStream) |
PicturesTable(HWPFDocument _document, byte[] _dataStream, byte[] _mainStream, FSPATable fspa, EscherRecordHolder dgg)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Picture |
extractPicture(CharacterRun run, boolean fillBytes)
Returns picture object tied to specified CharacterRun
(返回绑定到指定 CharacterRun 的图片对象)
|
java.util.List<Picture> |
getAllPictures()
Not all documents have all the images concatenated in the data stream although MS claims so.
(尽管 MS 声称如此,但并非所有文档都将所有图像连接到数据流中。)
|
boolean |
hasEscherPicture(CharacterRun run) |
boolean |
hasHorizontalLine(CharacterRun run)
determines whether specified CharacterRun contains reference to a picture
(确定指定的 CharacterRun 是否包含对图片的引用)
|
boolean |
hasPicture(CharacterRun run)
determines whether specified CharacterRun contains reference to a picture
(确定指定的 CharacterRun 是否包含对图片的引用)
|
@Deprecated public PicturesTable(HWPFDocument _document, byte[] _dataStream, byte[] _mainStream, FSPATable fspa, EscherRecordHolder dgg)
_document
-
(_文档 -)
_dataStream
-
(_数据流 -)
public PicturesTable(HWPFDocument _document, byte[] _dataStream, byte[] _mainStream)
public boolean hasPicture(CharacterRun run)
run
-
(跑 -)
public boolean hasEscherPicture(CharacterRun run)
public boolean hasHorizontalLine(CharacterRun run)
run
-
(跑 -)
public Picture extractPicture(CharacterRun run, boolean fillBytes)
run
-
(跑 -)
fillBytes
- if true, Picture will be returned with filled byte array that represent picture's contents. If you don't want to have that byte array in memory but only write picture's contents to stream, pass false and then use Picture.writeImageContent
(fillBytes - 如果为真,图片将返回代表图片内容的填充字节数组。如果您不想在内存中拥有该字节数组,而只想将图片的内容写入流,请传递 false 然后使用 Picture.writeImageContent)
Picture.writeImageContent(java.io.OutputStream)
,
hasPicture(org.apache.poi.hwpf.usermodel.CharacterRun)
public java.util.List<Picture> getAllPictures()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.