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 Mike Trotman <mi...@datalucid.com> on 2003/10/20 16:34:10 UTC
FOP fo:leader
Whatever I try I can't get fo:leader to work as I want it to.
I have downloaded the latest version of fop-0.20.5.
I have read the FAQs (which claim it works well)
> http://xml.apache.org/fop/faq.html#leader-expansion
tried text-align="...." for various things.
I can only get leader to behave at all if I specify the length of the
leader - which is not a practical option.
I want to write a line at the bottom of my page like:
<left margin>Hyperlink
......................................................................................
Page 1<right margin>
(What I really want is to be able to center something in the middle as
well - but I get the feeling that's being too ambitious.
e.g.
<left margin>Hyperlink ......................................... Centred
......................................................... Page 1<right
margin>)
Any help would be greatly appreciated.
(My current attempt is listed below.
The leader fills the whole of the rest of the line and the 'Page' is
split onto the next line.
11 <fo:static-content flow-name="xsl-region-after">
12 <fo:block font-family="serif" font-size="8pt"
text-align="justify" text-align-last="justify">
13
14 A
15
16 (
17 <fo:basic-link color="blue"
external-destination="url(http://www.w3.org/TR/WD-xsl/)">
18 XSL-FO Working Draft
19 </fo:basic-link>
20 )
21 B
22 <fo:leader leader-pattern="dots"
leader-length.maximum="100%" rule-style="solid" rule-thickness="1em"
color="red"/>
23 Page
24 <fo:page-number/>
25 </fo:block>
26 </fo:static-content>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: FOP fo:leader - works
Posted by Mike Trotman <mi...@datalucid.com>.
I take it all back - it now works as expected.
(I think my browser may have cached a PDF or two and given me the wrong
impression.)
Still not sure if 'text-align' and 'text-align-last' are behaving as I
expect - but both together seem to do the trick.
Mike Trotman wrote:
> Whatever I try I can't get fo:leader to work as I want it to.
>
> I have downloaded the latest version of fop-0.20.5.
> I have read the FAQs (which claim it works well)
>
>> http://xml.apache.org/fop/faq.html#leader-expansion
>
>
>
> tried text-align="...." for various things.
>
> I can only get leader to behave at all if I specify the length of the
> leader - which is not a practical option.
>
> I want to write a line at the bottom of my page like:
> <left margin>Hyperlink
> ......................................................................................
> Page 1<right margin>
>
> (What I really want is to be able to center something in the middle as
> well - but I get the feeling that's being too ambitious.
> e.g.
> <left margin>Hyperlink .........................................
> Centred ......................................................... Page
> 1<right margin>)
>
> Any help would be greatly appreciated.
>
> (My current attempt is listed below.
> The leader fills the whole of the rest of the line and the 'Page' is
> split onto the next line.
>
> 11 <fo:static-content flow-name="xsl-region-after">
> 12 <fo:block font-family="serif" font-size="8pt"
> text-align="justify" text-align-last="justify">
> 13
> 14 A
> 15
> 16 (
> 17 <fo:basic-link color="blue"
> external-destination="url(http://www.w3.org/TR/WD-xsl/)">
> 18 XSL-FO Working Draft
> 19 </fo:basic-link>
> 20 )
> 21 B
> 22 <fo:leader leader-pattern="dots"
> leader-length.maximum="100%" rule-style="solid" rule-thickness="1em"
> color="red"/>
> 23 Page
> 24 <fo:page-number/>
> 25 </fo:block>
> 26 </fo:static-content>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
--
Datalucid Limited
8 Eileen Road
South Norwood
London SE25 5EJ
tel :0208-239-6810
mob: 0794-725-9760
email: mike.trotman@datalucid.com
UK Co. Reg: 4383635
VAT Reg.: 798 7531 60
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org