user1423596
user1423596

Reputation: 11

How to use fo:leader with Apache FOP?

I am not able to use fo:leader with Apache FOP. My requirement is to add trailing dots after some text. I am using the following but it is not working:

<fo:block font-family="Liberation Serif" font-size="8pt" font-style="normal" font-weight="normal" color="#000000" text-align-last="justify">0000: Net Income
       <fo:leader leader-pattern="dots" leader-length="100%" font-size="8pt"/>
</fo:block>

But the output is not 0000: Net Income ............

Instead the output is 0000:

Also if the text wraps then how do I align the leader dots with the last line of the text? This happens in "Right To Left" mode for Arabic language. The leader dots show after the first line instead of the last.

Upvotes: 0

Views: 507

Answers (1)

Toshihiko Makita
Toshihiko Makita

Reputation: 1304

Change fo:leader/@laeder-length from leader-length="100%" to leader-length.maximum="100%".

Then you can get the desired result:

FOP formatting result

Upvotes: 1

Related Questions