Hpdf::Table
Inherits Reference / Object
The table is the container for Row, which contain Cell.
Constructors
new(x : Number, y : Number, width : Number, height : Number, *, spacing : Number = 0, fixed_row_height : Number = 0)
creates a new table with the given coordinates and dimensions
- spacing spacing between the cells, by default there is no spacing
- fixed_row_height allows to specify the row height instead of calculation
new(rect : Rectangle, *, spacing : Number = 0, fixed_row_height : Number = 0)
creates a new table using the given rect
- spacing spacing between the cells, by default there is no spacing
Instance methods
rect
Sourcerect=(rect : Hpdf::Rectangle)
Sourcerender(page : Page, &block : Table | Row | BaseCell, Symbol -> )
render will call cell rendering for all cells. Then it will render the rectangles for the cell, row and table using the passed function
row(*, height = 0, allow_grow = false, &)
creates a rows and yields the block with the newly created row and adds it to the end (bottom) of the table
rows
Sourcespacing
Sourcespacing=(spacing : Float32)
Source