| Modifier and Type | Field and Description |
|---|---|
| private final ResourceCache | |
| private PDTransparencyGroupAttributes |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | PDFormXObject(COSStream
The XObject stream stream, ResourceCache the cache to be used for the resources cache)Creates a Form XObject for reading. |
| public | PDFormXObject(PDDocument
The current document document)Creates a Form Image XObject for writing, in the given document. |
| Modifier and Type | Method and Description |
|---|---|
| public PDRectangle | Returns: The BBox of the form.Implements org. An array of four numbers in the form coordinate system (see below), giving the coordinates of the left, bottom, right, and top edges, respectively, of the form XObject's bounding box. |
| public InputStream | getContents()
Implements org. Returns this stream's content, if any. |
| public RandomAccessRead | getContentsForRandomAccess()
Implements org. Returns this stream's content, if any. |
| public PDStream | |
| public int | |
| public PDTransparencyGroupAttributes | |
| public Matrix | Returns: the form matrix if available, or the identity matrix.Implements org. This will get the optional matrix of an XObjectForm. |
| public PDPropertyList | Returns: The optional content group or optional content membership dictionary or null if there is none.This will get the optional content group or optional content membership dictionary. |
| public PDResources | Returns: The resources for this Form XObject.Implements org. This will get the resources for this Form XObject. |
| public int | Returns: the integer key of the XObjectForm's entry in the structural parent tree or -1 if there isn't any.This will get the key of this XObjectForm in the structural parent tree. |
| public void | setBBox(PDRectangle
The new BBox for this form. bbox)This will set the BBox (bounding box) for this form. |
| public void | |
| public void | setMatrix(AffineTransform
the transformation matrix transform)Sets the optional Matrix entry for the form XObject. |
| public void | setOptionalContent(PDPropertyList
The optional content group or optional content membership dictionary. oc)Sets the optional content group or optional content membership dictionary. |
| public void | setResources(PDResources
The new resources for this page. resources)This will set the resources for this page. |
| public void | setStructParents(int
The new key for this XObjectForm. structParent)This will set the key for this XObjectForm in the structural parent tree. |
| cache | back to summary |
|---|---|
| private final ResourceCache cache | |
| group | back to summary |
|---|---|
| private PDTransparencyGroupAttributes group | |
| PDFormXObject | back to summary |
|---|---|
| public PDFormXObject(PDStream stream) Creates a Form XObject for reading.
| |
| PDFormXObject | back to summary |
|---|---|
| public PDFormXObject(COSStream stream) Creates a Form XObject for reading.
| |
| PDFormXObject | back to summary |
|---|---|
| public PDFormXObject(COSStream stream, ResourceCache cache) Creates a Form XObject for reading.
| |
| PDFormXObject | back to summary |
|---|---|
| public PDFormXObject(PDDocument document) Creates a Form Image XObject for writing, in the given document.
| |
| getBBox | back to summary |
|---|---|
| public PDRectangle getBBox() Implements org. An array of four numbers in the form coordinate system (see below), giving the coordinates of the left, bottom, right, and top edges, respectively, of the form XObject's bounding box. These boundaries are used to clip the form XObject and to determine its size for caching.
| |
| getContents | back to summary |
|---|---|
| public InputStream getContents() throws IOException Implements org. Doc from org. Returns this stream's content, if any.
| |
| getContentsForRandomAccess | back to summary |
|---|---|
| public RandomAccessRead getContentsForRandomAccess() throws IOException Implements org. Doc from org. Returns this stream's content, if any.
| |
| getContentStream | back to summary |
|---|---|
| public PDStream getContentStream() | |
| getFormType | back to summary |
|---|---|
| public int getFormType() This will get the form type, currently 1 is the only form type.
| |
| getGroup | back to summary |
|---|---|
| public PDTransparencyGroupAttributes getGroup() Returns the group attributes dictionary.
| |
| getMatrix | back to summary |
|---|---|
| public Matrix getMatrix() Implements org. This will get the optional matrix of an XObjectForm. It maps the form space to user space. | |
| getOptionalContent | back to summary |
|---|---|
| public PDPropertyList getOptionalContent() This will get the optional content group or optional content membership dictionary.
| |
| getResources | back to summary |
|---|---|
| public PDResources getResources() Implements org. This will get the resources for this Form XObject. This will return null if no resources are available.
| |
| getStructParents | back to summary |
|---|---|
| public int getStructParents() This will get the key of this XObjectForm in the structural parent tree. Required if the form XObject contains marked-content sequences that are structural content items.
| |
| setBBox | back to summary |
|---|---|
| public void setBBox(PDRectangle bbox) This will set the BBox (bounding box) for this form.
| |
| setFormType | back to summary |
|---|---|
| public void setFormType(int formType) Set the form type.
| |
| setMatrix | back to summary |
|---|---|
| public void setMatrix(AffineTransform transform) Sets the optional Matrix entry for the form XObject.
| |
| setOptionalContent | back to summary |
|---|---|
| public void setOptionalContent(PDPropertyList oc) Sets the optional content group or optional content membership dictionary.
| |
| setResources | back to summary |
|---|---|
| public void setResources(PDResources resources) This will set the resources for this page.
| |
| setStructParents | back to summary |
|---|---|
| public void setStructParents(int structParent) This will set the key for this XObjectForm in the structural parent tree.
| |