You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Miller, Iain" <Ia...@Derwent.co.uk> on 2003/01/08 14:37:29 UTC
issues with fo:leader, fo:page-citation, and justification for to
c and index
Hi,
I'm posting this both lists, hopefully this should interest developers, and
maybe
I can get an answer to this:
I've got a document with contents, then the body and then an index.
They both use the 'standard' contents pattern, ie with a block using
text-align="justify", and a leader to produce lines like:
Stuff..........................23
btw it doesn't seem to matter if I use text-align or text-align-last,
even though each line is in it's own block.
Observations:
If I use page-number-citation for the contents, then it works just fine.
If I use a literal page number (not for the final product obviously!) then
the
leader runs to the end of the line, and the page number is on the next line.
For the index, the page number is on the next line as above, for both
literal
numbers and page-number-citations.
However, if I put the index before the body (not ideal for the final
product!),
so the order is contents, index, body, then the index works perfectly as
well.
It seems to me like there's something going on with page-number-citation and
justify. I know the whole PDF document is kept in memory until the forward
page references are resolved (always for the contents, and for the index
when
I moved it to the front), so has this got something to do with it.
I guess I'll have to use a table workaround, unless anyone knows a better
one.
Thanks
Iain Miller
----------------------------------------------------------------------------------------------------------------------
The information contained in this email is confidential and intended
only for the use of the individual or entity named above. If the reader
of this message is not the intended recipient, you are hereby notified
that any dissemination, distribution, or copying of this communication
is strictly prohibited. Thomson Scientific will accept no responsibility
or liability in respect to this email other than to the addressee. If you
have received this communication in error, please notify us
immediately via email: postmaster@derwent.co.uk
----------------------------------------------------------------------------------------------------------------------
Re: issues with fo:leader, fo:page-citation, and justification for
to c and index
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Miller, Iain wrote:
> I'm posting this both lists, hopefully this should interest developers,
> and maybe
> I can get an answer to this:
You should still not crosspost. Developers generally lurk on the
user list. Also, your particular problem comes up every so often...
...
> They both use the 'standard' contents pattern, ie with a block using
> text-align="justify", and a leader to produce lines like:
>
> Stuff..........................23
...
> It seems to me like there's something going on with page-number-citation
> and
> justify. I know the whole PDF document is kept in memory until the forward
> page references are resolved (always for the contents, and for the index
> when
> I moved it to the front), so has this got something to do with it.
It has something to do with leader generation, in particular
the leader is expanded while added to the line with minimal
look-ahead. It should be expanded after the width of everything
else in the line is known.
BTW formally this is not a bug, FOP still conforms to the standard
here. The problem is that the standard is not all that detailed
in this area.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org