| java.lang.Object org.apache.poi.hwpf.model.PicturesTable
PicturesTable | public class PicturesTable (Code) | | Holds information about all pictures embedded in Word Document either via "Insert -> Picture -> From File" or via
clipboard. Responsible for images extraction and determining whether some document�s piece contains embedded image.
Analyzes raw data bytestream �Data� (where Word stores all embedded objects) provided by HWPFDocument.
Word stores images as is within so called "Data stream" - the stream within a Word docfile containing various data
that hang off of characters in the main stream. For example, binary data describing in-line pictures and/or
formfields an also embedded objects-native data. Word picture structures are concatenated one after the other in
the data stream if the document contains pictures.
Data stream is easily reachable via HWPFDocument._dataStream property.
A picture is represented in the document text stream as a special character, an Unicode \u0001 whose
CharacterRun.isSpecial() returns true. The file location of the picture in the Word binary file is accessed
via CharacterRun.getPicOffset(). The CharacterRun.getPicOffset() is a byte offset into the data stream.
Beginning at the position recorded in picOffset, a header data structure, will be stored.
author: Dmitry Romanov |
BLOCK_TYPE_OFFSET | final static int BLOCK_TYPE_OFFSET(Code) | | |
MM_MODE_TYPE_OFFSET | final static int MM_MODE_TYPE_OFFSET(Code) | | |
TYPE_HORIZONTAL_LINE | final static int TYPE_HORIZONTAL_LINE(Code) | | |
TYPE_IMAGE | final static int TYPE_IMAGE(Code) | | |
TYPE_IMAGE_PASTED_FROM_CLIPBOARD | final static int TYPE_IMAGE_PASTED_FROM_CLIPBOARD(Code) | | |
TYPE_IMAGE_PASTED_FROM_CLIPBOARD_WORD2000 | final static int TYPE_IMAGE_PASTED_FROM_CLIPBOARD_WORD2000(Code) | | |
TYPE_IMAGE_WORD2000 | final static int TYPE_IMAGE_WORD2000(Code) | | |
PicturesTable | public PicturesTable(byte[] _dataStream)(Code) | | Parameters: _dataStream - |
getAllPictures | public List getAllPictures()(Code) | | a list of Picture objects found in current document |
hasHorizontalLine | public boolean hasHorizontalLine(CharacterRun run)(Code) | | determines whether specified CharacterRun contains reference to a picture
Parameters: run - |
hasPicture | public boolean hasPicture(CharacterRun run)(Code) | | determines whether specified CharacterRun contains reference to a picture
Parameters: run - |
|
|