PDContentStream, COSObjectablePDAppearanceStream, PDTransparencyGrouppublic class PDFormXObject extends PDXObject implements PDContentStream
| Constructor | Description |
|---|---|
PDFormXObject(COSStream stream) |
Creates a Form XObject for reading.
|
PDFormXObject(COSStream stream,
ResourceCache cache) |
Creates a Form XObject for reading.
|
PDFormXObject(PDStream stream) |
Creates a Form XObject for reading.
|
PDFormXObject(PDDocument document) |
Creates a Form Image XObject for writing, in the given document.
|
| Modifier and Type | Method | Description |
|---|---|---|
PDRectangle |
getBBox() |
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.
|
java.io.InputStream |
getContents() |
Returns this stream's content, if any.
|
PDStream |
getContentStream() |
|
int |
getFormType() |
This will get the form type, currently 1 is the only form type.
|
PDTransparencyGroupAttributes |
getGroup() |
Returns the group attributes dictionary.
|
Matrix |
getMatrix() |
This will get the optional matrix of an XObjectForm.
|
PDResources |
getResources() |
This will get the resources for this Form XObject.
|
int |
getStructParents() |
This will get the key of this XObjectForm in the structural parent tree.
|
void |
setBBox(PDRectangle bbox) |
This will set the BBox (bounding box) for this form.
|
void |
setFormType(int formType) |
Set the form type.
|
void |
setMatrix(java.awt.geom.AffineTransform transform) |
Sets the optional Matrix entry for the form XObject.
|
void |
setResources(PDResources resources) |
This will set the resources for this page.
|
void |
setStructParents(int structParent) |
This will set the key for this XObjectForm in the structural parent tree.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateXObject, getCOSObject, getCOSStream, getPDStream, getStreampublic PDFormXObject(PDStream stream)
stream - The XObject streampublic PDFormXObject(COSStream stream)
stream - The XObject streampublic PDFormXObject(COSStream stream, ResourceCache cache)
stream - The XObject streampublic PDFormXObject(PDDocument document)
document - The current documentpublic int getFormType()
public void setFormType(int formType)
formType - The new form type.public PDTransparencyGroupAttributes getGroup()
public PDStream getContentStream()
public java.io.InputStream getContents()
throws java.io.IOException
PDContentStreamgetContents in interface PDContentStreamjava.io.IOException - If the stream could not be readpublic PDResources getResources()
getResources in interface PDContentStreampublic void setResources(PDResources resources)
resources - The new resources for this page.public PDRectangle getBBox()
getBBox in interface PDContentStreampublic void setBBox(PDRectangle bbox)
bbox - The new BBox for this form.public Matrix getMatrix()
getMatrix in interface PDContentStreampublic void setMatrix(java.awt.geom.AffineTransform transform)
transform - the transformation matrixpublic int getStructParents()
public void setStructParents(int structParent)
structParent - The new key for this XObjectForm.Copyright © 2002–2018. All rights reserved.