https://issues.apache.org/bugzilla/show_bug.cgi?id=51594
Bug #: 51594
Summary: Using text-align-last="justify" to align page number
of Table of Contents: alignment of page is not shifted
correctly always
Product: Fop
Version: 1.0
Platform: PC
OS/Version: Windows Server 2003
Status: NEW
Severity: normal
Priority: P2
Component: pdf
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Created attachment 27336
--> https://issues.apache.org/bugzilla/attachment.cgi?id=27336
FO xml file that has the problem
Using text-align-last="justify" and leader-pattern to align the page number of
Table of Contents:
the alignment of the page is shifted too much/not enough if the document name
contains blanks followed by a slash, e.g. "m / / / / / / / / / / / / kk" as
document name.
Dependent on how many " /" character pairs are part of the document name, the
page number displayed is shifted too much to the right or to the left, the
pages are not displayed one underneath the other.
e.g.
3.3.2. m / / / / / / / / / / / / kk..................................45
3.3.3. m / / / / / / / / / / / / / / / / /kk..........................46
The fo statement used is:
<fo:block space-after="2mm" hyphenate="true" wrap-option="wrap"
text-align-last="justify">m / / / / / / / / / / / / kk<fo:leader
leader-pattern="dots" /> 45</fo:block>
Please see attached fop renderer input xml and pdf output file as example and
for details of the problem.
The problem is dependent on the font, it is with Arial, using MS Gothic is even
worse.
We use fop 0.94, but I tried 1.0 too - same result.
The bug could be related to #36238
--> blanks in the document name, but I tried Courier too and it doesn't work
either.
#43739 seems to have a similar problem
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.