Jack.
--
mathuin at gmail dot com
On Nov 9, 2011 7:22 AM, "AK" <ak.from.w...@gmail.com> wrote:
>
> I tried this:
>
> data = [['small','small'],['big'],['small','small']]
>
> Prawn::Document.generate("x.pdf") do
> table data do |t|
> t.rows(1).width = 540
> end
> end
>
> But it gives me:
>
> Prawn::Errors::CannotFit
The other posters are correct. The is currently no way for table cells to span a column or row. You're getting that error because Prawn is attempting to size the first column to fit that entire oversized cell.
I have some ideas about how to implement spanning in Prawn, but I haven't had the time to flesh them out yet.
Brad