Hi Phillip,

I'm trying to generate a contents page myself, but since I'm quite new to
FOP I have no idea as to how to make a reference to page numbers of pages in
the document. It seams like you've solved this problem and I was wondering
if you would be willing to share this information, or point me in the
direction of a web page (or some other resource) that discusses this kind of
thing.

Here's what I'm trying to do in a bit more detail. I'm creating a PDF
document from a FOP template which is dynamically modified with the data
from the database. The reason why I can't just create a static content page
is because of the dynamic content (which needs a variable number of pages).
What's the best way to handle this kind of a problem?

Thanks in advance,

Vladimir

 -----Original Message-----
From:   Phillip Harling [mailto:[EMAIL PROTECTED]] 
Sent:   Saturday, 8 December 2001 6:11 a.m.
To:     [EMAIL PROTECTED]
Subject:        page-number-citation and formatting

I'm having a small problem when using <fo:page-number-citation/> and
formatting.  I am generating a table of contents using a table, and wish to
right align the page numbers.  If the table of contents appears at the
beginning of the document, the numbers don't get right-aligned, but if the
table of contents appears at the end of the document then they get aligned
correctly.

What appears to be happening is that if a forward reference is made to a
page citation then fop doesn't know how big the page number will be and
doesn't allocate any area for it.  If the page number is known, then the
space it allocates is known and correct alignment can occur.

I've had a look at org.apache.fop.fo.flow.PageNumberCitation and this seems
to bear up to the analysis.

Has anyone else experienced this problem and if so, do you have a
work-around?

Phil.



--

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to