Class: Idml::Elements::Table

Inherits:
Lutaml::Model::Serializable
  • Object
show all
Defined in:
lib/idml/elements/table.rb

Overview

<Table> — a table page item. Carries geometry, body/header row counts, column layout, and border styling. Declares every attribute of Table_Object in Stories/Story.rnc (171 schema attributes). Two child collections hold the table's content:

  • row — schema-faithful <Row> siblings (real IDML).
  • cell — schema-faithful <Cell> siblings (real IDML).
  • table_row — legacy nested <TableRow><TableCell> form (synthetic test fixture only; see TODO 84).

The renderer auto-detects which layout is present.

Instance Method Summary collapse

Instance Method Details

#geometric_boundsObject



453
454
455
# File 'lib/idml/elements/table.rb', line 453

def geometric_bounds
  @geometric_bounds ||= properties.first&.first_geometry&.bounding_box
end