PDFix SDK  7.2.0
Loading...
Searching...
No Matches
PdeTable Struct Referenceabstract

PdeTable class. More...

#include <pdfix.h>

Inheritance diagram for PdeTable:
PdeContainer PdeElement

Public Member Functions

virtual int GetNumRows () const =0
 Returns the number of table rows. More...
 
virtual void SetNumRows (int num)=0
 Sets the number of table rows. More...
 
virtual int GetNumCols () const =0
 Returns the number of table columns. More...
 
virtual void SetNumCols (int num)=0
 Sets the number of table columns. More...
 
virtual PdeCellGetCell (int row, int col)=0
 Returns the cell object of table columns. More...
 
virtual PdfAlignment GetRowAlignment (int row) const =0
 Returns the row alignment. More...
 
virtual PdfAlignment GetColAlignment (int col) const =0
 Returns the cell alignment. More...
 
virtual PdeElementGetCaption ()=0
 Gets the caption of the table. Iterate it's children if the element is PdeContainer. More...
 
virtual PdfTableType GetTableType () const =0
 Gets the type of the table. More...
 
- Public Member Functions inherited from PdeElement
virtual PdfElementType GetType () const =0
 Gets the type of an element. More...
 
virtual void GetBBox (PdfRect *bbox) const =0
 
virtual bool SetBBox (const PdfRect *bbox)=0
 
virtual void GetQuad (PdfQuad *quad) const =0
 
virtual int GetId ()=0
 Gets the id of an element. The id is unique number on a page. More...
 
virtual void GetGraphicState (PdfGraphicState *g_state)=0
 Gets the graphics state information for an element. More...
 
virtual int GetNumChildren () const =0
 Gets the number of child elements in an element object. More...
 
virtual PdeElementGetChild (int index)=0
 Gets the requested child element from an element. More...
 
virtual PdfAlignment GetAlignment () const =0
 Gets the element alignment within the content column. More...
 
virtual float GetAngle () const =0
 Gets the element angle. More...
 
virtual void SetData (void *data)=0
 Sets user-supplied data to pass to the element. More...
 
virtual void * GetData () const =0
 Gets user-supplied data to pass to the element. More...
 
virtual bool SetAlt (const wchar_t *alt)=0
 Sets the alternate description of the element. More...
 
virtual bool SetActualText (const wchar_t *text)=0
 Sets the actual text of the element. More...
 
virtual int GetTag (wchar_t *buffer, int len) const =0
 Gets the tag name of the element. More...
 
virtual bool SetTag (const wchar_t *text)=0
 Sets the tag name of the element. More...
 
virtual int GetTagId (wchar_t *buffer, int len) const =0
 Gets the tag id of the element. More...
 
virtual bool SetTagId (const wchar_t *id)=0
 Sets the tag id of the element. More...
 
virtual int GetFlags () const =0
 Get the element state flags. More...
 
virtual bool SetFlags (int flags)=0
 Set the element state flags. More...
 
virtual int GetStateFlags () const =0
 Get the element state flags. More...
 
virtual bool SetStateFlags (PdfStateFlags flags, bool objects)=0
 Set the element state flags. More...
 
virtual int GetNumPageObjects () const =0
 Get the the number pf page object in the element. More...
 
virtual PdsPageObjectGetPageObject (int index)=0
 Get the the page object of the element by index. More...
 
virtual PdePageMapGetPageMap ()=0
 Get the the page map object containing this element. More...
 
virtual PdfLabelType GetLabelType () const =0
 Gets the element label type. More...
 
virtual bool SetLabelType (PdfLabelType type)=0
 Sets the element type level. More...
 

Detailed Description

PdeTable class.

PdeTable class represents tables extracted from PDF document. PdePageMap recognizes and decomposes tables in PDF documents and store the extracted data in a PdeTable class for easier reuse.

Member Function Documentation

◆ GetCaption()

virtual PdeElement * PdeTable::GetCaption ( )
pure virtual

Gets the caption of the table. Iterate it's children if the element is PdeContainer.

Returns
The caption element.

◆ GetCell()

virtual PdeCell * PdeTable::GetCell ( int  row,
int  col 
)
pure virtual

Returns the cell object of table columns.

Parameters
rowThe row number of the requested cell.
colThe col number of the requested cell.
Returns
A requested cell.
See also
PdeTable::PdeTableGetNumRows, PdeTable::PdeTableGetNumCols

◆ GetColAlignment()

virtual PdfAlignment PdeTable::GetColAlignment ( int  col) const
pure virtual

Returns the cell alignment.

Parameters
colThe col number of the requested cell.
Returns
Cell alignment.

◆ GetNumCols()

virtual int PdeTable::GetNumCols ( ) const
pure virtual

Returns the number of table columns.

Returns
A number of table columns.
See also
PdeTable::PdeTableGetNumRows, PdeTable::PdeTableGetCell

◆ GetNumRows()

virtual int PdeTable::GetNumRows ( ) const
pure virtual

Returns the number of table rows.

Returns
A number of table rows.
See also
PdeTable::PdeTableGetNumCols, PdeTable::PdeTableGetCell

◆ GetRowAlignment()

virtual PdfAlignment PdeTable::GetRowAlignment ( int  row) const
pure virtual

Returns the row alignment.

Parameters
rowThe row number of the requested cell.
Returns
Row alignment.

◆ GetTableType()

virtual PdfTableType PdeTable::GetTableType ( ) const
pure virtual

Gets the type of the table.

Returns
PdfTableType type.

◆ SetNumCols()

virtual void PdeTable::SetNumCols ( int  num)
pure virtual

Sets the number of table columns.

Parameters
numA number of table columns.

◆ SetNumRows()

virtual void PdeTable::SetNumRows ( int  num)
pure virtual

Sets the number of table rows.

Parameters
numA number of table rows.