I need a table where rows are actually 2 rows tables, a nested table that is.. How can I do that in prawn? Maybe I need an extension.. but which one?
Subtables are now supported:
Prawn::Document.generate("subtable.pdf") do |pdf|
subtable = pdf.make_table([["sub"], ["table"]])
pdf.table([[subtable, "original"]])
end
No support for this exists in released versions, but in the master branch of http://github.com/sandal/prawn you'll find our revamped table support which has nested tables. Take a look at the examples/ dir.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With