class

Hpdf::Cell

Inherits Hpdf::BaseCell / Reference / Object

The cell uses a simple captured block to render the cell content.

Constructors

new(*, span : Number = 1, allow_grow = false, &block : Page, Rectangle -> )

Creates a cell with the provided block to render. The block provides a reference to the page and a rectange of the cell.

  • span a cell can expand more then one cell (in the right direction) the default value 1 means no extend
Source

Instance methods

block
Source
block=(block : Hpdf::Page, Hpdf::Rectangle -> _)
Source
grow_height

returns the factor by which the cell wants to grow in height

Source
render(page : Page)

renders the captured block

Source