Top Description Fields Constructors Methods
org.apache.pdfbox.pdmodel.documentinterchange.taggedpdf

public Class PDTableAttributeObject

extends PDStandardAttributeObject
Class Inheritance
Imports
org.apache.pdfbox.cos.COSDictionary

A Table attribute object.
Author
Johannes Koch

Field Summary

Modifier and TypeField and Description
protected static final String
protected static final String
public static final String
OWNER_TABLE

standard attribute owner: Table

protected static final String
protected static final String
public static final String
SCOPE_BOTH

Scope: Both

public static final String
SCOPE_COLUMN

Scope: Column

public static final String
SCOPE_ROW

Scope: Row

protected static final String
Inherited from org.apache.pdfbox.pdmodel.documentinterchange.taggedpdf.PDStandardAttributeObject:
UNSPECIFIED

Constructor Summary

AccessConstructor and Description
public
PDTableAttributeObject()

Default constructor.

public
PDTableAttributeObject(COSDictionary
the dictionary
dictionary
)

Creates a new Table attribute object with a given dictionary.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the column span
getColSpan
()

Gets the number of columns in the enclosing table that shall be spanned by the cell (ColSpan).

public String[]

Returns:

the headers.
getHeaders
()

Gets the headers (Headers).

public int

Returns:

the row span
getRowSpan
()

Gets the number of rows in the enclosing table that shall be spanned by the cell (RowSpan).

public String

Returns:

the scope
getScope
()

Gets the scope (Scope).

public String

Returns:

the summary
getSummary
()

Gets the summary of the table’s purpose and structure.

public void
setColSpan(int
the column span
colSpan
)

Sets the number of columns in the enclosing table that shall be spanned by the cell (ColSpan).

public void
setHeaders(String[]
the headers
headers
)

Sets the headers (Headers).

public void
setRowSpan(int
the row span
rowSpan
)

Sets the number of rows in the enclosing table that shall be spanned by the cell (RowSpan).

public void
setScope(String
the scope
scope
)

Sets the scope (Scope).

public void
setSummary(String
the summary
summary
)

Sets the summary of the table’s purpose and structure.

public String
Inherited from org.apache.pdfbox.pdmodel.documentinterchange.taggedpdf.PDStandardAttributeObject:
getArrayOfStringgetColorgetColorOrFourColorsgetIntegergetNamegetNamegetNameOrArrayOfNamegetNumbergetNumbergetNumberOrArrayOfNumbergetNumberOrNamegetStringisSpecifiedsetArrayOfNamesetArrayOfNumbersetArrayOfStringsetColorsetFourColorssetIntegersetNamesetNumbersetNumbersetString

Field Detail

COL_SPANback to summary
protected static final String COL_SPAN
HEADERSback to summary
protected static final String HEADERS
OWNER_TABLEback to summary
public static final String OWNER_TABLE

standard attribute owner: Table

ROW_SPANback to summary
protected static final String ROW_SPAN
SCOPEback to summary
protected static final String SCOPE
SCOPE_BOTHback to summary
public static final String SCOPE_BOTH

Scope: Both

SCOPE_COLUMNback to summary
public static final String SCOPE_COLUMN

Scope: Column

SCOPE_ROWback to summary
public static final String SCOPE_ROW

Scope: Row

SUMMARYback to summary
protected static final String SUMMARY

Constructor Detail

PDTableAttributeObjectback to summary
public PDTableAttributeObject()

Default constructor.

PDTableAttributeObjectback to summary
public PDTableAttributeObject(COSDictionary dictionary)

Creates a new Table attribute object with a given dictionary.

Parameters
dictionary:COSDictionary

the dictionary

Method Detail

getColSpanback to summary
public int getColSpan()

Gets the number of columns in the enclosing table that shall be spanned by the cell (ColSpan). The default value is 1.

Returns:int

the column span

getHeadersback to summary
public String[] getHeaders()

Gets the headers (Headers). An array of byte strings, where each string shall be the element identifier (see the org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDStructureElement#getElementIdentifier()) for a TH structure element that shall be used as a header associated with this cell.

Returns:String[]

the headers.

getRowSpanback to summary
public int getRowSpan()

Gets the number of rows in the enclosing table that shall be spanned by the cell (RowSpan). The default value is 1.

Returns:int

the row span

getScopeback to summary
public String getScope()

Gets the scope (Scope). It shall reflect whether the header cell applies to the rest of the cells in the row that contains it, the column that contains it, or both the row and the column that contain it.

Returns:String

the scope

getSummaryback to summary
public String getSummary()

Gets the summary of the table’s purpose and structure.

Returns:String

the summary

setColSpanback to summary
public void setColSpan(int colSpan)

Sets the number of columns in the enclosing table that shall be spanned by the cell (ColSpan).

Parameters
colSpan:int

the column span

setHeadersback to summary
public void setHeaders(String[] headers)

Sets the headers (Headers). An array of byte strings, where each string shall be the element identifier (see the org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDStructureElement#getElementIdentifier()) for a TH structure element that shall be used as a header associated with this cell.

Parameters
headers:String[]

the headers

setRowSpanback to summary
public void setRowSpan(int rowSpan)

Sets the number of rows in the enclosing table that shall be spanned by the cell (RowSpan).

Parameters
rowSpan:int

the row span

setScopeback to summary
public void setScope(String scope)

Sets the scope (Scope). It shall reflect whether the header cell applies to the rest of the cells in the row that contains it, the column that contains it, or both the row and the column that contain it. The value shall be one of the following:

Parameters
scope:String

the scope

setSummaryback to summary
public void setSummary(String summary)

Sets the summary of the table’s purpose and structure.

Parameters
summary:String

the summary

toStringback to summary
public String toString()

Overrides org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDAttributeObject.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override