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

Class Methods

(BOOL) + addTableToPage:data:cell_array:
 Add a table to the PDF page.
More...
 

Detailed Description

This class is used to insert tables to PDF document. Before using any class or methods in this module, please ensure Foxit PDF SDK has been initialized successfully by function FSLibrary::initialize:key: with a key including "TableMaker" module.

See also
FSLibrary

Method Documentation

◆ addTableToPage:data:cell_array:()

+ (BOOL) addTableToPage: (FSPDFPage*)  page
data: (FSTableData*)  data
cell_array: (FSTableCellDataArray*)  cell_array 

Add a table to the PDF page.

Parameters
[in]pageA valid PDF page object.
[in]dataThe object of FSTableData . Please make sure that the product of FSTableData::row_count and FSTableData::col_count in data is the same as the number of cell_array, otherwise an exception will be thrown. Please make sure that the FSTableData::rect in data is not empty and is in the page box of the current page, otherwise an exception will be thrown.
[in]cell_arrayThis is a two-dimensional array, an array of FSTableCellDataColArray objects. Exception FSErrUnsupported will be thrown if the text and image are in the same cell.
Returns
YES means success, while NO means failure.