You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Valentina Benedetti <Vb...@brainpower.ch> on 2004/09/01 16:49:22 UTC
region-before not displayed
Hi,
Can someone explain me why the simple xsl-fo code below produces a pdf
without header?
And moreover, why increasing region-before "extent" attribute to 5.1mm, the
header innocently appears.
After several attempts I noticed that font-size and line-height could be
involved.
Is there a reason for this behavior?
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="page" page-height="297mm"
page-width="210mm">
<fo:region-body region-name="xsl-region-body" margin-top="10mm"/>
<fo:region-before extent="5mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="page">
<fo:static-content flow-name="xsl-region-before">
<fo:block>header</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block>body</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
Regards
Valentina Benedetti
PS: I'm using FOP 0.20.4.
_______________________________________________________________
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Any views or opinions expressed
are solely those of the author and do not necessarily represent those of
Brainpower. Brainpower also reserves the right to monitor all e-mail
communications through its internal and external networks.
_______________________________________________________________
This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Brainpower. Brainpower also reserves the right to monitor all e-mail communications through its internal and external networks.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: region-before not displayed
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Valentina Benedetti wrote:
> without header?
> And moreover, why increasing region-before "extent" attribute to 5.1mm, the
> header innocently appears.
The default font size is 12pt or ~4.23mm. FOP allocates additional
~20% space above and below the glyph marks, for a total of 5.08mm.
This means the text wont fit into a region 5mm high, but will be
displayed in a region which is 5.1 mm high.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org