Subject:Programmatically changing page orientation Author:Yunus UK Date:01 Dec 2009 07:55 AM Originally Posted: 01 Dec 2009 07:31 AM
Hi,
I have numerous tables I want to generate to one pdf however I would like the table orientation to depend on a attribute I provide with the table data. Is there a way of changing the table orientation at runtime? (section of code is listed below, i want it so if outputLandscapeTable template is called then the orientation is changed to landscape )
Subject:Programmatically changing page orientation Author:(Deleted User) Date:01 Dec 2009 10:28 AM
The orient='land' attribute is not part of the fo:table instruction; it is an argument for the DocBook XSLT processor. Unless you are indeed using DocBook, you should wrap the fo:table in a
<fo:block-container reference-orientation="90">
element (that, unfortunately, FOP 0.20 doesn't support - you will have to select XEP as post-processor to make it work)
Another option is to use the PSMI toolkit (http://www.cranesoftwrights.com/resources/psmi/index.htm) that post process your FO document to generate sequence of different page layouts.