Package com.snowtide.pdf.layout
Interface Table
-
- All Superinterfaces:
Block
,BlockParent
,Bounded
,OutputSource
public interface Table extends Block
Blocks of this subtype have been recognized by PDFxStream to contain a table-like structure.
Currently, PDFxStream recognizes tables only if their cells are delineated by graphical lines. Future PDFxStream releases will include table recognition capability for whitespace-delineated tables.
Tabular data may be extracted using:
- the functions in
TableUtils
, which will yield CSV-style conversions - an appropriate
OutputHandler
implementation (passed to aTable
instance'sOutputSource.pipe(OutputHandler)
function) - "manually" walking the subtree of the page's
document model
rooted atTable
s to selectively pull out columns, rows, etc. as one's application demands
- Since:
- v2.0
- Version:
- ©2004-2024 Snowtide
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BlockParent
getRow(int rowIdx)
Returns aBlockParent
instance containing theBlock
s that form the indicated row number.int
getRowCnt()
Returns the number of rows in this table.-
Methods inherited from interface com.snowtide.pdf.layout.Block
crop, getLine, getLineCnt, getLines, guessDirection, removeLine
-
Methods inherited from interface com.snowtide.pdf.layout.BlockParent
addChild, getChild, getChildCnt, removeAllChildren, removeChild, replaceChild, sortChildren
-
Methods inherited from interface com.snowtide.pdf.OutputSource
pipe, pipe
-
-
-
-
Method Detail
-
getRowCnt
int getRowCnt()
Returns the number of rows in this table.
-
getRow
BlockParent getRow(int rowIdx)
Returns aBlockParent
instance containing theBlock
s that form the indicated row number.- Parameters:
rowIdx
- a zero-based row index
-
-