# Table with pdfwriter

**URL:** <https://rubytalk.org/t/table-with-pdfwriter/28216>\
**Category:** ruby-talk\
**Created:** [15 June 2006 07:19 UTC](https://rubytalk.org/t/table-with-pdfwriter/28216 "2006-06-15T07:19:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tele](https://avatars.discourse-cdn.com/v4/letter/t/7ba0ec/32.png) [@tele](https://rubytalk.org/u/tele)\
**Post date:** [15 June 2006 07:19 UTC](https://rubytalk.org/t/table-with-pdfwriter/28216/1 "2006-06-15T07:19:16Z")

</div>

hi all,

is there a way to do rowspan using table of pdfwriter?

i need to create a table like below:

> **···**
>
> +--------------------+  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> MYTABLE | -\> tbl.columns['MYTABLE'] = PDF::SimpleTable::Column.new("MYTABLE") { |col|  
> &nbsp;&nbsp;&nbsp;&nbsp;+--------------------+ col.heading = PDF::SimpleTable::Column::Heading.new("MYTABLE")  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>attr1 val1 | col.heading.justification = :center  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>attr2 val2 | }  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>attr3 val3 |  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> \>  
> &nbsp;&nbsp;&nbsp;&nbsp;+--------------------+  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;attrN = left alignment  
> &nbsp;&nbsp;&nbsp;&nbsp;valN = right alignment
> 
> :tele

---

<div class="post-metadata">

**Author:** ![Austin\_Ziegler5](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/austin_ziegler5/32/1985_2.png) [@Austin\_Ziegler5](https://rubytalk.org/u/Austin_Ziegler5)\
**Post date:** [15 June 2006 12:10 UTC](https://rubytalk.org/t/table-with-pdfwriter/28216/2 "2006-06-15T12:10:59Z")

</div>

Not with SimpleTable. There's a reason it's "Simple". 😉

If someone wanted to write a module to support the (highly complex)  
XHTML table model, I'd happily accept it into the project (license  
compatibility, of course).

-austin

> **···**
>
> On 6/15/06, tele \<tele@plexia.com\> wrote:
> 
> > is there a way to do rowspan using table of pdfwriter?
> 
> --  
> Austin Ziegler \* halostatue@gmail.com \* [http://www.halostatue.ca/](http://www.halostatue.ca/)  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* austin@halostatue.ca \* [You are in a maze of twisty little passages, all alike. // halo • statue](http://www.halostatue.ca/feed/)  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* austin@zieglers.ca
