Foxit PDF SDK

构造函数 | 所有成员列表
<FSTableGeneratorCallback>协议 参考

继承自 <NSObject> .

## 构造函数
(FSPageBasicInfo *) | - GetNewPageBasicInfo:rest_table_height:table_width:
| A callback function to get new page basic information to be generated to a new page. 更多...
(float) | - getTableTopMarginToPage:
| A callback function to get the top margin for generating table to an new page. 更多...

## 详细描述

This class represents a callback object for generating table. All the pure virtual functions in this class are used as callback functions and should be implemented by user.

## 函数文档

## ◆ GetNewPageBasicInfo:rest_table_height:table_width:()

- (FSPageBasicInfo*) GetNewPageBasicInfo: |  | (int) | page_index
rest_table_height: |  | (float) | rest_table_height
table_width: |  | (float) | table_width
| required

A callback function to get new page basic information to be generated to a new page.

This callback function is only used for FSTableGenerator::insertTablePagesToDocument. It will be triggered if the page width or page height is less than or equal to zero. Users must ensure that the text size is greater than zero in FSRichTextStyle if the content of cell is text.

参数

  [in] | page_index | The page index. It would start from 0.
  [in] | rest_table_height | The rest table height(unit is 1/72 inch).
  [in] | table_width | The table width(unit is 1/72 inch).

返回
  The basic page information.(The rotation will not be unsupported currently).

## ◆ getTableTopMarginToPage:()

- (float) getTableTopMarginToPage: |  | (int) | page_index |
| required

A callback function to get the top margin for generating table to an new page.

参数

  [in] | page_index | The page index. It would start from 0.

返回
  The table top margin to page.