Tables (rinoh.table)

class rinoh.table.Table(body, head=None, align=None, width=None, column_widths=None, id=None, style=None, parent=None)
style_class

alias of TableStyle

prepare(flowable_target)

Determine number labels and register references with the document

render(container, last_descender, state, space_below=0, **kwargs)

Renders the flowable’s content to container, with the flowable’s top edge lining up with the container’s cursor. descender is the descender height of the preceding line or None.

class rinoh.table.TableWithCaption(flowables, align=None, width=None, id=None, style=None, parent=None, source=None)
style_class

alias of TableWithCaptionStyle

class rinoh.table.TableSection(rows, style=None, parent=None)
prepare(flowable_target)

Determine number labels and register references with the document

class rinoh.table.TableHead(rows, style=None, parent=None)
class rinoh.table.TableBody(rows, style=None, parent=None)
class rinoh.table.TableRow(cells, style=None, parent=None)
prepare(flowable_target)

Determine number labels and register references with the document

get_rowspanned_columns()

Return a dictionary mapping column indices to the number of columns spanned.

class rinoh.table.TableCell(flowables, rowspan=1, colspan=1, id=None, style=None, parent=None)
style_class

alias of TableCellStyle

class rinoh.table.TableCellBorder(rendered_cell, cell_height, position, style=None)
style_class

alias of TableCellBorderStyle

class rinoh.table.TableCellBackground(bottom_left, width, height, style=None, parent=None)
style_class

alias of TableCellBackgroundStyle

class rinoh.table.VerticalAlign

Accepts: top, middle, bottom

class rinoh.table.ListOfTables(local=False, id=None, style=None, parent=None)
class rinoh.table.ListOfTablesSection
list_class

alias of ListOfTables