You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Phillip Harling <ph...@db.com> on 2001/12/07 18:11:23 UTC

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: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: page-number-citation and formatting

Posted by Edward Dowgiallo <ed...@ptdprolog.net>.
Philip,

    I don't have a work around, but I just reported this problem myself. It
seems to be a general problem with fo:inline processing as I have
experienced the same thing working with marker values as well as page number
citations.

-Ed
----- Original Message -----
From: "Phillip Harling" <ph...@db.com>
To: <fo...@xml.apache.org>
Sent: Friday, December 07, 2001 12:11 PM
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: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


RE: page-number-citation and formatting

Posted by Matthias Fischer <m....@abc-media.de>.
We had the same problem you had, Phil. I admit, the output is not too
representable due to this (among other) problems of FOP. Another problem
would be that, if you use a filler of type ".....", it assumes a fix width.
It does not seem to be able to fill out the variable space between the text
of a TOC heading and the corresponding page number, like is shown in the
following example:

Long text long text ..................... 12
Short text .............................. 18

Matthias



-----Original Message-----
From: Philip Harling [mailto:philip.harling@db.com]On Behalf Of Phillip
Harling
Sent: Friday, December 07, 2001 6:11 PM
To: fop-dev@xml.apache.org
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: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org