Foxit PDF SDK
foxit::addon::TableGenerator Class Reference
Inheritance diagram for foxit::addon::TableGenerator:
foxit::Base

Static Public Member Functions

static bool AddTableToPage (const foxit::pdf::PDFPage &page, const TableData &data, const TableCellDataArray &cell_array)
 Add a table to the PDF page. More...
 

Additional Inherited Members

- Public Member Functions inherited from foxit::Base
FS_HANDLE Handle () const
 Get the handle of current object. More...
 

Detailed Description

This class is used to combine form data from several files and export combined form data to spreadsheet.

Member Function Documentation

◆ AddTableToPage()

static bool foxit::addon::TableGenerator::AddTableToPage ( const foxit::pdf::PDFPage page,
const TableData data,
const TableCellDataArray cell_array 
)
static

Add a table to the PDF page.

Parameters
[in]pageA valid PDF page object.
[in]dataThe object of TableData. Please make sure that the product of TableData::row_count and TableData::col_count in data is the same as the number of cell_array, otherwise an exception will be thrown. Please make sure that the TableData::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 TableCellDataColArray objects. Exception foxit::e_ErrUnsupported will be thrown if the text and image are in the same cell.
Returns
true means success, while false means failure.