> -----Original Message-----
> From: Jason Cowley [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 22, 2006 12:34 PM
> 
> I am working on an application that dynamically generates 
> XSL:FO xml, from XHTML forms to produce PDF output. On 
> certain large tables within a document I would like to change 
> the page orientation from portrait to landscape, and then 
> revert back to portrait after the table for subsequent pages. 
> So ideally I would like to change the page orientation after 
> a page break. Is this possible, and if so can someone be so 
> kind as to provide an example?
> 
> I use the following to force a page break:
> 
> <fo:block break-before="page"/>
> 
> I have tried setting the reference-orientation attribute to 
> 90 on the block-container surrounding the table like so:
> 
> <fo:block-container reference-orientation="0">
>    <fo:table>
>      ...
>    </fo:table>
> </fo:block-container>
> 
> but this results the table text being rotated, except it is 
> squashed into a narrow block so all of the text overlaps and 
> no table borders are drawn.

Depending on referecence-orientation value, you should explicitely give
either i-p-d (your case) or b-p-d, like in following snippet:

<fo:block-container reference-orientation="0">
        <fo:block>content</fo:block>
</fo:block-container>

<fo:block-container reference-orientation="90"
        inline-progression-dimension.minimum="5mm"
        inline-progression-dimension.optimum="30mm"
        inline-progression-dimension.maximum="auto">
        <fo:block>content</fo:block>
</fo:block-container>

<fo:block-container reference-orientation="180"
        
block-progression-dimension="inherited-property-value(line-height)">
        <fo:block>content</fo:block>
</fo:block-container>

<fo:block-container reference-orientation="270"
        inline-progression-dimension="25mm">
        <fo:block>content</fo:block>
</fo:block-container>

HTH,
Pascal

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to