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 Dennis Myrén <De...@oslokb.no> on 2004/01/16 15:47:49 UTC
Omit space-before/space-after after page break
Hi.
I use FOP to generate a PDF document from FO.
I use space-before/space-after to get space between objects.
When there is not room for an object on the current page, a new page is created and the rendering continues at the new page.
Sometimes this results in objects starting a little further down on the new page than specified by the page margin, because of the space-before/after that I have specified on the current object.
Is it possible to omit any space when rendering continues on a new page?
Maybe not well explained, but did you catch it?
Shortly, I want space between each object in the PDF, but I always want to start on the same position on each page (page top margin)
Regards,
Dennis JD Myrén
Developer
Oslo Kode Bureau
Tel: (+47) 98 00 11 92
Mail: dennis@oslokb.no
Web: www.oslokb.no
Re: Omit space-before/space-after after page break
Posted by Chris Bowditch <bo...@hotmail.com>.
Dennis Myrén wrote:
> Is it possible to omit any space when rendering continues on a new page?
The XSL-FO spec provides space-before.conditionality to control this
behaviour. space-before.conditionality="discard" is the default and
discards space before at the beginning of a new reference area.
space-before.conditionality="retain" behaves as you observed.
Unfortunately this is not implemented by FOP, and space-before always
behaves as though you set space-before.conditionality="retain" I'm not
aware of any workarounds.
<snip/>
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org