Class Interface

# PDFTableDataSource

<div class="rst-class">

forsearch

</div>

PDF

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

A data source to use to populate a `PDFTable</api/pdf/pdftable>`.

## Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                                                        | Parameters                                                                                                                       | Returns                            | Shared |
|-------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------|------------------------------------|--------|
| `AddNewRow<pdftabledatasource.addnewrow>`                   | rowCount As `Integer</api/data_types/integer>`                                                                                   | `Boolean</api/data_types/boolean>` |        |
| `Completed<pdftabledatasource.completed>`                   | x As `Double</api/data_types/double>`, y As `Double</api/data_types/double>`                                                     |                                    |        |
| `HeaderHeight<pdftabledatasource.headerheight>`             |                                                                                                                                  | `Double</api/data_types/double>`   |        |
| `MergeCellsForRow<pdftabledatasource.mergecellsforrow>`     | row As `Integer</api/data_types/integer>`, `ByRef</api/language/byref>` cellsToMerge() As `CellRange</api/pdf/cellrange>`        | `Boolean</api/data_types/boolean>` |        |
| `PaintAfter<pdftabledatasource.paintafter>`                 | g As `Graphics</api/graphics/graphics>`                                                                                          |                                    |        |
| `PaintBefore<pdftabledatasource.paintbefore>`               | g As `Graphics</api/graphics/graphics>`                                                                                          |                                    |        |
| `PaintCell<pdftabledatasource.paintcell>`                   | g As `Graphics</api/graphics/graphics>`, row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>` |                                    |        |
| `PaintHeaderContent<pdftabledatasource.paintheadercontent>` | g As `Graphics</api/graphics/graphics>`, column As `Integer</api/data_types/integer>`                                            |                                    |        |
| `RowHeight<pdftabledatasource.rowheight>`                   |                                                                                                                                  | `Double</api/data_types/double>`   |        |

## Method descriptions

<div id="pdftabledatasource.addnewrow">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

PDFTableDataSource.AddNewRow

**AddNewRow**(rowCount As `Integer</api/data_types/integer>`) As `Boolean</api/data_types/boolean>`

> Called to determine if a new row needs to be added. Returning `True</api/language/true>` adds a new row while returning `False</api/language/false>` does not.

<div id="pdftabledatasource.completed">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

PDFTableDataSource.Completed

**Completed**(x As `Double</api/data_types/double>`, y As `Double</api/data_types/double>`)

> Provides the bottom left coordinates of the table when drawing of it is completed.

<div id="pdftabledatasource.headerheight">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

PDFTableDataSource.HeaderHeight

**HeaderHeight** As `Double</api/data_types/double>`

> Returns the height of the header.

<div id="pdftabledatasource.mergecellsforrow">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

PDFTableDataSource.MergeCellsForRow

**MergeCellsForRow**(row As `Integer</api/data_types/integer>`, `ByRef</api/language/byref>` cellsToMerge() As `CellRange</api/pdf/cellrange>`) As `Boolean</api/data_types/boolean>`

> Merges the ranges of cells in the *cellsToMerge* array passed in the *row* passed.

<div id="pdftabledatasource.paintafter">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

PDFTableDataSource.PaintAfter

**PaintAfter**(g As `Graphics</api/graphics/graphics>`)

> You can draw into the page via the passed parameter *g* after everything has been drawn.

<div id="pdftabledatasource.paintbefore">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

PDFTableDataSource.PaintBefore

**PaintBefore**(g As `Graphics</api/graphics/graphics>`)

> You can draw into a new page via the passed parameter *g*.

<div id="pdftabledatasource.paintcell">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

PDFTableDataSource.PaintCell

**PaintCell**(g As `Graphics</api/graphics/graphics>`, row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`)

> The cell at the *row* and *column* passed is being drawn. You can draw into the cell via the passed parameter *g*.

<div id="pdftabledatasource.paintheadercontent">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

PDFTableDataSource.PaintHeaderContent

**PaintHeaderContent**(g As `Graphics</api/graphics/graphics>`, column As `Integer</api/data_types/integer>`)

> The header for the *column* passed is being drawn. You can draw into the header via the passed parameter *g*.

<div id="pdftabledatasource.rowheight">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

PDFTableDataSource.RowHeight

**RowHeight** As `Double</api/data_types/double>`

> Returns the height of a row from the table.

## Compatibility

|                       |     |
|-----------------------|-----|
| **Project Types**     | All |
| **Operating Systems** | All |

<div id="pdftabledatasource.see_also">

<div class="seealso">

`PDFDocument</api/pdf/pdfdocument>`, `PDFTable</api/pdf/pdftable>` and `CellRange</api/pdf/cellrange>`

</div>

</div>
