@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
|
java.util.List<Picture> |
getAllPictures()
Not all documents have all the images concatenated in the data stream
although MS claims so.
|
boolean |
hasEscherPicture(CharacterRun run) |
boolean |
hasHorizontalLine(CharacterRun run)
determines whether specified CharacterRun contains reference to a picture
|
boolean |
hasPicture(CharacterRun run)
determines whether specified CharacterRun contains reference to a picture
|
@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.writeImageContentPicture.writeImageContent(java.io.OutputStream)
,
hasPicture(org.zkoss.poi.hwpf.usermodel.CharacterRun)
public java.util.List<Picture> getAllPictures()
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.