com.foxit.sdk.addon.xfa.XFAPage Class Reference
Inheritance diagram for com.foxit.sdk.addon.xfa.XFAPage:
com.foxit.sdk.common.Base

Public Member Functions

 XFAPage (XFAPage other)
 Constructor, with another XFA page object.
More...
 
Matrix2D getDisplayMatrix (int left, int top, int width, int height, int rotate) throws com.foxit.sdk.PDFException
 Get the display matrix, from PDF coordinate system to targeted device coordinate system.
More...
 
float getHeight () throws com.foxit.sdk.PDFException
 Get the height of the XFA page.
More...
 
int getIndex () throws com.foxit.sdk.PDFException
 Get index of the XFA page.
More...
 
XFAWidget getWidget (int widget_index) throws com.foxit.sdk.PDFException
 Get XFA widget by index.
More...
 
XFAWidget getWidgetAtDevicePoint (Matrix2D matrix, PointF device_point, float tolerance) throws com.foxit.sdk.PDFException
 Get the XFA widget at a specified point, in device coordination system.
More...
 
int getWidgetCount () throws com.foxit.sdk.PDFException
 Get the count of XFA widget.
More...
 
float getWidth () throws com.foxit.sdk.PDFException
 Get the width.
More...
 
boolean isEmpty ()
 Check whether current object is empty or not.
More...
 

Detailed Description

Class XFAPage represents the XFA page which is retrieved from XFA document object.
To render a XFA page, please use function common.Renderer.startRenderXFAPage .

See also
com.foxit.sdk.common.Renderer

Constructor & Destructor Documentation

◆ XFAPage()

com.foxit.sdk.addon.xfa.XFAPage.XFAPage ( XFAPage  other)

Constructor, with another XFA page object.

Parameters
[in]otherAnother XFA page object.

Member Function Documentation

◆ getDisplayMatrix()

Matrix2D com.foxit.sdk.addon.xfa.XFAPage.getDisplayMatrix ( int  left,
int  top,
int  width,
int  height,
int  rotate 
) throws com.foxit.sdk.PDFException

Get the display matrix, from PDF coordinate system to targeted device coordinate system.

Parameters
[in]leftLeft position of the transformation area in device coordinate system, commonly in pixels.
[in]topTop position of the transformation area in device coordinate system, commonly in pixels.
[in]widthWidth of the transformation area in device coordinate system, commonly in pixels.
[in]heightHeight of the transformation area in device coordinate system, commonly in pixels.
[in]rotateRotation value. Please refer to values starting from com.foxit.sdk.common.Constants.e_Rotation0 and this should be one of these values.
Returns
A Matrix object that receives the display matrix used for current XFA page. If there is any error, a Matrix with all value 0 will be returned.

◆ getHeight()

float com.foxit.sdk.addon.xfa.XFAPage.getHeight ( ) throws com.foxit.sdk.PDFException

Get the height of the XFA page.

Returns
A float value that receives the height of current XFA page.

◆ getIndex()

int com.foxit.sdk.addon.xfa.XFAPage.getIndex ( ) throws com.foxit.sdk.PDFException

Get index of the XFA page.

Returns
The index of XFA page.

◆ getWidget()

XFAWidget com.foxit.sdk.addon.xfa.XFAPage.getWidget ( int  widget_index) throws com.foxit.sdk.PDFException

Get XFA widget by index.

Parameters
[in]widget_indexThe XFA widget index. Valid range: from 0 to (count-1). count is returned by function XFAPage.getWidgetCount .
Returns
The XFA widget.

◆ getWidgetAtDevicePoint()

XFAWidget com.foxit.sdk.addon.xfa.XFAPage.getWidgetAtDevicePoint ( Matrix2D  matrix,
PointF  device_point,
float  tolerance 
) throws com.foxit.sdk.PDFException

Get the XFA widget at a specified point, in device coordination system.

Parameters
[in]matrixThe transformation matrix. Usually this is returned by function XFAPage.getDisplayMatrix .
[in]device_pointA point in device coordination system.
[in]toleranceTolerance value. Valid range: 0.0f to 30.0f.
Returns
An XFA Widget object.

◆ getWidgetCount()

int com.foxit.sdk.addon.xfa.XFAPage.getWidgetCount ( ) throws com.foxit.sdk.PDFException

Get the count of XFA widget.

Returns
The count of XFA widget.

◆ getWidth()

float com.foxit.sdk.addon.xfa.XFAPage.getWidth ( ) throws com.foxit.sdk.PDFException

Get the width.

Returns
A float value that receives the width of current XFA page.

◆ isEmpty()

boolean com.foxit.sdk.addon.xfa.XFAPage.isEmpty ( )

Check whether current object is empty or not.

When the current object is empty, that means current object is useless.

Returns
true means current object is empty, while false means not.