Prawn PDF: I need to create nested tables

I need a table in which the rows are actually 2 rows of the table whose sub table is. How can I do this in shrimp? Maybe I need an extension ... but which one?

+5
source share
3 answers

There is no support for this in the released versions, but in the main branch http://github.com/sandal/prawn you will find our updated table support, which has nested tables. Take a look at the / dir examples.

+3
source

Podcasts are now supported:

Prawn::Document.generate("subtable.pdf") do |pdf|
  subtable = pdf.make_table([["sub"],["table"]])
  pdf.table([[subtable,"original"]])
end
+3
source

Nesting tables was actually the main source of inspiration for Crayfish .
As far as I know, Prawn still cannot make the correct sizes and placement cells on more complex tables.

+2
source

All Articles