Page 1 of 1

how to make text vertical in table columns, header ?

Posted: Mon Feb 11, 2013 1:32 pm
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

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

Posted: Mon Feb 11, 2013 5:18 pm
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