|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.core.pobjects.Dictionary
org.icepdf.core.pobjects.Stream
org.icepdf.core.pobjects.Form
public class Form
Form XObject class. Not currently part of the public api.
Forms are grouped into the 'Resource' category and can be shared. As a result we need to make sure that the init method are synchronized as they can be accessed by different page loading threads.
| Field Summary | |
|---|---|
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
|
| Fields inherited from class org.icepdf.core.pobjects.Stream |
|---|
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_KEY |
| Fields inherited from class org.icepdf.core.pobjects.Dictionary |
|---|
entries, FORM_TYPE_KEY, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEY |
| Constructor Summary | |
|---|---|
Form(Library l,
java.util.HashMap h,
SeekableInputConstrainedWrapper streamInputWrapper)
Creates a new instance of the xObject. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.icepdf.core.pobjects.Stream |
|---|
getDecodedByteArrayInputStream, getDecodedStreamBytes, getDecodedStreamBytes, getFilterNames, getNormalisedFilterNames, getPObjectReference, getRawBytes, isImageSubtype, isRawBytesCompressed, setPObjectReference, setRawBytes, toString |
| Methods inherited from class org.icepdf.core.pobjects.Dictionary |
|---|
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, isDeleted, isNew, setDeleted, setNew |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public 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
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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()
Dictionary
init 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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||