how to make text vertical in table columns, header ?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
magyarcs
Posts: 7
Joined: Fri Feb 24, 2012 7:18 pm

how to make text vertical in table columns, header ?

Post by magyarcs »

Hi,

My problem is that I have a wide table with several columns and the column headers horizontal and run out of the PDF's sode when printed. I'd like to make the headers vertical so I gain some space.

Thanks,
Csaba
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: how to make text vertical in table columns, header ?

Post by sorin_ristache »

Hi,

You did not specify the type of your XML document, maybe the framework of that type of documents has some parameters for setting the text orientation.

If you want to modify directly the XSL-FO file you can add some attributes like writing-mode="tb-rl" glyph-orientation-vertical="90" which should enable vertical orientation.

Other option is to set a fixed width for each table column, like 100px or 200px or some proportional sizes like 25% for each of the four columns or 20% for each of the five columns. This will force the header text to span several lines of text so that the overflowing text will be split over several lines.

Maybe other useful option would be to change the paper orientation to Landscape instead or Portrait or Letter?


I hope this helps,
Sorin
Post Reply