XForm
Inheritance: java.lang.Object, com.aspose.pdf.XForm
All Implemented Interfaces: com.aspose.ms.System.IDisposable, com.aspose.pdf.engine.IOperatorContainer
public final class XForm extends Object implements com.aspose.ms.System.IDisposable, com.aspose.pdf.engine.IOperatorContainer
Class represent XForm
Methods
| Method | Description |
|---|---|
| close | Frees up memory |
| containsOwnResources | Returns True if contains Own Resources |
| createNewForm | Creates new XForm in the document. |
| createNewForm | Creates XForm which duplicates contents of the page. |
| createNewForm | |
| dispose | Frees up memory |
| freeMemory | Clears cached data |
| getBBox | Gets form bounding box. |
| getContents | Gets operators of the form. |
| getEngineObj | Internal only |
| getIT | Gets form IT. Form IT is a name describing the intent of the XObject. |
| getMatrix | Gets matrix of the form. |
| getName | Gets form name. Form name is name which used to reference form in XObejct ductionary in page resources. |
| getOpi | Gets The Open Prepress Interface (OPI). |
| getRectangle | Gets rectangel of the form. |
| getResources | Returns resources of Form X-Object. If For does not have resources and allowCreate is true, Resources will be automatically created for the form. |
| getResources | Returns resources of Form X-Object |
| getResourcesField | Gets Form XObject resources. |
| getSubtype | Gets form Subtype. |
| setBBox | Sets form bounding box. |
| setMatrix | Sets matrix of the form. |
| setName | Sets form name. Form name is name which used to reference form in XObejct dictionary in page resources. |
close
public final void close()
Frees up memory
containsOwnResources
public boolean containsOwnResources()
Returns True if contains Own Resources
Returns: boolean value
createNewForm
Creates new XForm in the document.
createNewForm
Creates XForm which duplicates contents of the page.
createNewForm
dispose
public final void dispose()
Frees up memory
freeMemory
public void freeMemory()
Clears cached data
getBBox
public Rectangle getBBox()
Gets form bounding box.
Returns: Rectangle
getContents
public OperatorCollection getContents()
Gets operators of the form.
Returns: OperatorCollection object
getEngineObj
public com.aspose.pdf.engine.data.IPdfObject getEngineObj()
Internal only
Returns: IPdfObject object
getIT
public final String getIT()
Gets form IT. Form IT is a name describing the intent of the XObject.
Returns: String value
getMatrix
public Matrix getMatrix()
Gets matrix of the form.
Returns: Matrix
getName
public String getName()
Gets form name. Form name is name which used to reference form in XObejct ductionary in page resources.
Returns: String
getOpi
public Opi getOpi()
Gets The Open Prepress Interface (OPI).
Returns: Opi instance
getRectangle
public Rectangle getRectangle()
Gets rectangel of the form.
Returns: Rectangle
getResources
public Resources getResources()
Returns resources of Form X-Object. If For does not have resources and allowCreate is true, Resources will be automatically created for the form.
Returns: Resources instance
getResources
public final Resources getResources(boolean allowCreate)
Returns resources of Form X-Object
Parameters:
| Parameter | Type | Description |
|---|---|---|
| allowCreate | If For does not have resources and allowCreate is true, Resources will be automatically created for the form. |
Returns: Resources instance
getResourcesField
public final Resources getResourcesField()
Gets Form XObject resources.
Returns: Resources instance. If For does not have resources, Resources will be automatically created for the form.
getSubtype
public final String getSubtype()
Gets form Subtype.
Returns: String value
setBBox
Sets form bounding box.
setMatrix
Sets matrix of the form.
setName
Sets form name. Form name is name which used to reference form in XObejct dictionary in page resources.