xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Niedermann <...@thelogic.org>
Subject Horizontal and Vertical Alignment with region-start
Date Wed, 05 Nov 2008 12:35:32 GMT

Hi,

I'm new to XSL-FO and I try to center a rotated text horizontally and
vertically in the region-start area.

This is the FO-file:

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master margin="0mm" page-width="70.0mm" page-height="38.0mm"
master-name="kanban">
<fo:region-body background-color="#EEEEEE" margin-left="8mm"/>
<fo:region-start reference-orientation="270" background-color="#DDDDDD"
extent="8mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="kanban">
<fo:static-content flow-name="xsl-region-start">
<fo:block text-align="center">Hello</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block>World</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>

The rotated text is centered horizontally (from text view) but not
vertically. What do I need to add to center vertically and horizontally?

Thanks,
  Frank
-- 
View this message in context: http://www.nabble.com/Horizontal-and-Vertical-Alignment-with-region-start-tp20340905p20340905.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message