public class Form extends Stream
| Modifier and Type | Field and Description |
|---|---|
static Name |
BBOX_KEY |
static Name |
GROUP_KEY |
static Name |
I_KEY |
static Name |
K_KEY |
static Name |
MATRIX_KEY |
static Name |
RESOURCES_KEY |
static Name |
SUB_TYPE_VALUE |
static Name |
TYPE_VALUE |
COLORSPACE_KEY, compressed, CS_KEY, DECODEPARAM_KEY, F_KEY, FILTER_KEY, H_KEY, HEIGHT_KEY, IM_KEY, IMAGEMASK_KEY, INDEXED_KEY, pObjectReference, rawBytes, W_KEY, WIDTH_KEYentries, FORM_TYPE_KEY, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEY| Constructor and Description |
|---|
Form(Library l,
java.util.HashMap h,
SeekableInputConstrainedWrapper streamInputWrapper)
Creates a new instance of the xObject.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.geom.Rectangle2D |
getBBox()
Gets the bounding box for the xObject.
|
GraphicsState |
getGraphicsState()
Gets the associated graphic state instance for this form.
|
java.awt.geom.AffineTransform |
getMatrix()
Gets the optional matrix which describes how to convert the coordinate
system in xObject space to the parent coordinates space.
|
Resources |
getResources() |
Shapes |
getShapes()
Gets the shapes that where parsed from the content stream.
|
void |
init()
Initiate the Dictionary.
|
boolean |
isIsolated()
Only present if a transparency group is present.
|
boolean |
isKnockOut()
Only present if a transparency group is present.
|
boolean |
isTransparencyGroup()
If the xObject has a transparency group flag.
|
void |
setAppearance(Shapes shapes,
java.awt.geom.AffineTransform matrix,
java.awt.geom.Rectangle2D bbox) |
void |
setGraphicsState(GraphicsState graphicsState)
Sets the GraphicsState which should be used by the content parser when
parsing the Forms content stream.
|
void |
setParentResources(Resources parentResource)
As of the PDF 1.2 specification, a resource entry is not required for
a XObject and thus it needs to point to the parent resource to enable
to correctly load the content stream.
|
void |
setResources(Resources resources) |
getDecodedByteArrayInputStream, getDecodedStreamBytes, getDecodedStreamBytes, getFilterNames, getNormalisedFilterNames, getPObjectReference, getRawBytes, isImageSubtype, isRawBytesCompressed, setPObjectReference, setRawBytes, toStringgetEntries, getFloat, getInt, getLibrary, getNumber, getObject, isDeleted, isNew, setDeleted, setNewpublic static final Name TYPE_VALUE
public static final Name SUB_TYPE_VALUE
public static final Name GROUP_KEY
public static final Name I_KEY
public static final Name K_KEY
public static final Name MATRIX_KEY
public static final Name BBOX_KEY
public static final Name RESOURCES_KEY
public Form(Library l, java.util.HashMap h, SeekableInputConstrainedWrapper streamInputWrapper)
l - document libraryh - xObject dictionary entries.streamInputWrapper - content stream of image or post script commands.public void setAppearance(Shapes shapes, java.awt.geom.AffineTransform matrix, java.awt.geom.Rectangle2D bbox)
public void setGraphicsState(GraphicsState graphicsState)
graphicsState - current graphic statepublic GraphicsState getGraphicsState()
public void setParentResources(Resources parentResource)
parentResource - parent objects resourse when available.public void init()
Dictionaryinit in class Dictionarypublic Resources getResources()
public void setResources(Resources resources)
public Shapes getShapes()
public java.awt.geom.Rectangle2D getBBox()
public java.awt.geom.AffineTransform getMatrix()
public boolean isTransparencyGroup()
public boolean isIsolated()
public boolean isKnockOut()