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
OutputHandlerimplementation (passed to aTableinstance'sOutputSource.pipe(OutputHandler)function) - "manually" walking the subtree of the page's
document modelrooted atTables to selectively pull out columns, rows, etc. as one's application demands
- Since:
- v2.0
- Version:
- ©2004-2025 Snowtide
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BlockParentgetRow(int rowIdx)Returns aBlockParentinstance containing theBlocks that form the indicated row number.intgetRowCnt()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 aBlockParentinstance containing theBlocks that form the indicated row number.- Parameters:
rowIdx- a zero-based row index
-
-