# Table with pdfwriter

**URL:** <https://www.ruby-forum.com/t/table-with-pdfwriter/63441>\
**Category:** Ruby\
**Created:** [June 15, 2006, 9:57am UTC](https://www.ruby-forum.com/t/table-with-pdfwriter/63441 "2006-06-15T09:57:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tele](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7ba0ec/32.png) [@tele](https://www.ruby-forum.com/u/tele)\
**Post date:** [June 15, 2006, 9:57am UTC](https://www.ruby-forum.com/t/table-with-pdfwriter/63441/1 "2006-06-15T09:57:52Z")

</div>

hi all,

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

i need to create a table like below:

```
+--------------------+
 | MYTABLE | -> tbl.columns['MYTABLE'] =

```

PDF::SimpleTable::Column.new(“MYTABLE”) { |col|  
±-------------------+ col.heading =  
PDF::SimpleTable::Column::Heading.new(“MYTABLE”)  
|attr1 val1 | col.heading.justification = :center  
|attr2 val2 | }  
|attr3 val3 |  
| |  
| |  
±-------------------+

```
attrN = left alignment
valN = right alignment

```

:tele

---

<div class="post-metadata">

**Author:** ![tele](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7ba0ec/32.png) [@tele](https://www.ruby-forum.com/u/tele)\
**Post date:** [June 15, 2006, 2:15pm UTC](https://www.ruby-forum.com/t/table-with-pdfwriter/63441/2 "2006-06-15T14:15:01Z")

</div>

On 6/15/06, tele [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

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

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
