Foxit PDF SDK
FoxitPDFSDKPython2.TableData Class Reference

Inherits FoxitPDFSDKPython2._object.

Public Member Functions

def TableData ()
 Constructor.

 
def TableData (data)
 Constructor, with another table cell data object.
More...
 
def TableData (rect, row_count, col_count, outside_border_left, outside_border_right, outside_border_top, outside_border_bottom, inside_border_row, inside_border_col, merge_cells, row_height_array, col_width_array)
 Constructor, with parameters.
More...
 
def Set (rect, row_count, col_count, outside_border_left, outside_border_right, outside_border_top, outside_border_bottom, inside_border_row, inside_border_col, merge_cells, row_height_array, col_width_array)
 Set value.
More...
 

Static Public Attributes

 col_count = _swig_property(_fsdk.TableData_col_count_get, _fsdk.TableData_col_count_set)
 The count of columns in the table.

 
 col_width_array = _swig_property(_fsdk.TableData_col_width_array_get, _fsdk.TableData_col_width_array_set)
 The column width array. The column width will be set as default value automatically if the member of array is zero. Default: (width of rect)/col_count.

 
 inside_border_col = _swig_property(_fsdk.TableData_inside_border_col_get, _fsdk.TableData_inside_border_col_set)
 The column inside border info.

 
 inside_border_row = _swig_property(_fsdk.TableData_inside_border_row_get, _fsdk.TableData_inside_border_row_set)
 The row inside border info.

 
 merge_cells = _swig_property(_fsdk.TableData_merge_cells_get, _fsdk.TableData_merge_cells_set)
 The merge cells. The length of this array must be even and the zero length means no merge cell.
More...
 
 outside_border_bottom = _swig_property(_fsdk.TableData_outside_border_bottom_get, _fsdk.TableData_outside_border_bottom_set)
 The bottom outside border info.

 
 outside_border_left = _swig_property(_fsdk.TableData_outside_border_left_get, _fsdk.TableData_outside_border_left_set)
 The left outside border info.

 
 outside_border_right = _swig_property(_fsdk.TableData_outside_border_right_get, _fsdk.TableData_outside_border_right_set)
 The right outside border info.

 
 outside_border_top = _swig_property(_fsdk.TableData_outside_border_top_get, _fsdk.TableData_outside_border_top_set)
 The top outside border info.

 
 rect = _swig_property(_fsdk.TableData_rect_get, _fsdk.TableData_rect_set)
 Rectangle of the table which specifies the position in PDF page. It should be in [PDF coordinate system] ().

 
 row_count = _swig_property(_fsdk.TableData_row_count_get, _fsdk.TableData_row_count_set)
 The count of rows in the table.

 
 row_height_array = _swig_property(_fsdk.TableData_row_height_array_get, _fsdk.TableData_row_height_array_set)
 The row height array. The row height will be set as default value automatically if the member of array is zero. Default: (height of rect)/row_count.

 

Detailed Description

This class represents table data.

Constructor & Destructor Documentation

◆ TableData() [1/2]

def FoxitPDFSDKPython2.TableData.TableData (   rect,
  row_count,
  col_count,
  outside_border_left,
  outside_border_right,
  outside_border_top,
  outside_border_bottom,
  inside_border_row,
  inside_border_col,
  merge_cells,
  row_height_array,
  col_width_array 
)

Constructor, with parameters.

Parameters
[in]rectThe rectangle of the table which specifies the position in PDF page.
[in]row_countThe count of rows in the table.
[in]col_countThe count of columns in the table.
[in]outside_border_leftThe left outside border info.
[in]outside_border_rightThe right outside border info.
[in]outside_border_topThe top outside border info.
[in]outside_border_bottomThe bottom outside border info.
[in]inside_border_rowThe row inside border info.
[in]inside_border_colThe column inside border info.
[in]merge_cellsThe merge cells.
[in]row_height_arrayThe row height array. The row height will be set as default value automatically if the member of array is zero. Default: (height of rect)/row_count.
[in]col_width_arrayThe column width array. The column width will be set as default value automatically if the member of array is zero. Default: (width of rect)/col_count.

◆ TableData() [2/2]

def FoxitPDFSDKPython2.TableData.TableData (   data)

Constructor, with another table cell data object.

Parameters
[in]dataAnother table data object, whose value would be assigned to current object.

Member Function Documentation

◆ Set()

def FoxitPDFSDKPython2.TableData.Set (   rect,
  row_count,
  col_count,
  outside_border_left,
  outside_border_right,
  outside_border_top,
  outside_border_bottom,
  inside_border_row,
  inside_border_col,
  merge_cells,
  row_height_array,
  col_width_array 
)

Set value.

Parameters
[in]rectThe rectangle of the table which specifies the position in PDF page.
[in]row_countThe count of rows in the table.
[in]col_countThe count of columns in the table.
[in]outside_border_leftThe left outside border info.
[in]outside_border_rightThe right outside border info.
[in]outside_border_topThe top outside border info.
[in]outside_border_bottomThe bottom outside border info.
[in]inside_border_rowThe row inside border info.
[in]inside_border_colThe column inside border info.
[in]merge_cellsThe merge cells.
[in]row_height_arrayThe row height array. The row height will be set as default value automatically if the member of array is zero. Default: (height of rect)/row_count.
[in]col_width_arrayThe column width array. The column width will be set as default value automatically if the member of array is zero. Default: (width of rect)/col_count.
Returns
None.

Member Data Documentation

◆ merge_cells

FoxitPDFSDKPython2.TableData.merge_cells = _swig_property(_fsdk.TableData_merge_cells_get, _fsdk.TableData_merge_cells_set)
static

The merge cells. The length of this array must be even and the zero length means no merge cell.

Note
In a merged cell index array, every two consecutive members are grouped into cells. The first member represents the starting cell of the merged cell, and the second member represents the ending cell of the merged cell. For the table cell index, the valid range: from 0 to (row_count - 1) or (col_count - 1).