|
|||||||||
| 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 |
|---|
| Fields inherited from class org.icepdf.core.pobjects.Dictionary |
|---|
entries, isDeleted, isNew, library, SUBTYPE_KEY, TYPE_KEY |
| Constructor Summary | |
|---|---|
Form(Library l,
java.util.Hashtable h,
SeekableInputConstrainedWrapper streamInputWrapper)
Creates a new instance of the xObject. |
|
| Method Summary | |
|---|---|
void |
completed()
When a ContentParser refers to a Form, it calls this to signal that it is done with the Form itself, while the generated Shapes are still in use. |
void |
dispose(boolean cache)
When a Page refers to a Form, it calls this to cleanup and get rid of, or reduce the memory footprint of, the refered objects |
void |
disposeResources(boolean cache)
Disposes the resources associated with this Form object but leaves the shapes associated with a content stream. |
java.awt.geom.Rectangle2D |
getBBox()
Gets the bounding box for the xObject. |
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. |
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 |
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. |
| Methods inherited from class org.icepdf.core.pobjects.Stream |
|---|
getBlackIs1, getBlackIs1OrNull, getBytes, getImage, getInputStreamForDecodedStreamBytes, getPObjectReference, getStreamInput, isImageMask, isInlineImage, setInlineImage, setPObjectReference, toString |
| Methods inherited from class org.icepdf.core.pobjects.Dictionary |
|---|
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, getObject, isDeleted, isNew, setDeleted, setNew |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Form(Library l,
java.util.Hashtable h,
SeekableInputConstrainedWrapper streamInputWrapper)
l - document libraryh - xObject dictionary entries.streamInputWrapper - content stream of image or post script commands.| Method Detail |
|---|
public void dispose(boolean cache)
dispose in class Streampublic void disposeResources(boolean cache)
cache - true indicates the cache should be used.public void completed()
public void setGraphicsState(GraphicsState graphicsState)
graphicsState - current graphic statepublic void setParentResources(Resources parentResource)
parentResource - parent objects resourse when available.public void init()
Dictionary
init in class Dictionarypublic 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 | ||||||||