This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Creating a Footer using XSL-FO" Watch "Creating a Footer using XSL-FO" New topic
Author

Creating a Footer using XSL-FO

Ray Benjamin
Greenhorn

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,
Ray
[ September 24, 2008: Message edited by: Ulf Dittmer ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creating a Footer using XSL-FO