Foxit PDF SDK
FSXFAPage Class Reference
Inheritance diagram for FSXFAPage:
FSBase

Instance Methods

(FSMatrix2D *) - getDisplayMatrix:top:width:height:rotate:
 Get the display matrix, from PDF coordinate system to targeted device coordinate system.
More...
 
(float) - getHeight
 Get the height of the XFA page.
More...
 
(int) - getIndex
 Get index of the XFA page.
More...
 
(FSXFAWidget *) - getWidget:
 Get XFA widget by index.
More...
 
(FSXFAWidget *) - getWidgetAtDevicePoint:device_point:tolerance:
 Get the XFA widget at a specified point, in device coordination system.
More...
 
(int) - getWidgetCount
 Get the count of XFA widget.
More...
 
(float) - getWidth
 Get the width.
More...
 
(id) - initWithOther:
 Constructor, with another XFA page object.
More...
 
(BOOL) - isEmpty
 Check whether current object is empty or not.
More...
 

Detailed Description

Class FSXFAPage represents the XFA page which is retrieved from XFA document object.
To render a XFA page, please use function FSRenderer::startRenderXFAPage:matrix:is_highlight:pause:.

See also
FSRenderer

Method Documentation

◆ getDisplayMatrix:top:width:height:rotate:()

- (FSMatrix2D *) getDisplayMatrix: (int)  left
top: (int)  top
width: (int)  width
height: (int)  height
rotate: (FSRotation rotate 

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 FSRotation0 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) getHeight

Get the height of the XFA page.

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

◆ getIndex()

- (int) getIndex

Get index of the XFA page.

Returns
The index of XFA page.

◆ getWidget:()

- (FSXFAWidget *) getWidget: (int)  widget_index

Get XFA widget by index.

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

◆ getWidgetAtDevicePoint:device_point:tolerance:()

- (FSXFAWidget *) getWidgetAtDevicePoint: (FSMatrix2D*)  matrix
device_point: (FSPointF*)  device_point
tolerance: (float)  tolerance 

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

Parameters
[in]matrixThe transformation matrix. Usually this is returned by function FSXFAPage::getDisplayMatrix:top:width:height:rotate:.
[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) getWidgetCount

Get the count of XFA widget.

Returns
The count of XFA widget.

◆ getWidth()

- (float) getWidth

Get the width.

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

◆ initWithOther:()

- (id) initWithOther: (FSXFAPage*)  other

Constructor, with another XFA page object.

Parameters
[in]otherAnother XFA page object.

◆ isEmpty()

- (BOOL) isEmpty

Check whether current object is empty or not.

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

Returns
YES means current object is empty, while NO means not.