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

MethodDescription
closeFrees up memory
containsOwnResourcesReturns True if contains Own Resources
createNewFormCreates new XForm in the document.
createNewFormCreates XForm which duplicates contents of the page.
createNewForm
disposeFrees up memory
freeMemoryClears cached data
getBBoxGets form bounding box.
getContentsGets operators of the form.
getEngineObjInternal only
getITGets form IT. Form IT is a name describing the intent of the XObject.
getMatrixGets matrix of the form.
getNameGets form name. Form name is name which used to reference form in XObejct ductionary in page resources.
getOpiGets The Open Prepress Interface (OPI).
getRectangleGets rectangel of the form.
getResourcesReturns resources of Form X-Object. If For does not have resources and allowCreate is true, Resources will be automatically created for the form.
getResourcesReturns resources of Form X-Object
getResourcesFieldGets Form XObject resources.
getSubtypeGets form Subtype.
setBBoxSets form bounding box.
setMatrixSets matrix of the form.
setNameSets 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:

ParameterTypeDescription
allowCreateIf 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.