It's not a secret anymore!
The moose likes XML and Related Technologies and the fly likes Creating a Footer using XSL-FO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Creating a Footer using XSL-FO" Watch "Creating a Footer using XSL-FO" New topic

Creating a Footer using XSL-FO

Ray Benjamin

Joined: Sep 24, 2008
Posts: 1
What I want to do is simple, I think, but I can't figure out how it should be done. I have a report that I'm creating using XML-FO and FOP. At the bottom of each page, I'd like to have a footer like so:

| |
| |
| Printed 9/23/2008 Page 1 of 22 Property of XYZ Company |

As you can see, I'd like to have the date left justified, the page number info in the center, and the company name right justified. If I use <fo:block text-align="start">date</fo:block>
<fo:block text-align="center">page stuff</fo:block>
<fo:block text-align="end">company</fo:block>

I get 3 separate lines. If I use <fo:inline>, it just plain doesn't work, everything gets left justified.

I can fudge it, but that just makes me feel all dirty!

Can anyone tell me how I should do this?

Thanks ahead of time,
[ September 24, 2008: Message edited by: Ulf Dittmer ]
I agree. Here's the link:
subject: Creating a Footer using XSL-FO
It's not a secret anymore!