Bug 51594 - Using text-align-last="justify" to align page number of Table of Contents: alignment of page is not shifted correctly always
Summary: Using text-align-last="justify" to align page number of Table of Contents: al...
Status: CLOSED DUPLICATE of bug 49781
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: 1.0
Hardware: PC Windows Server 2003
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-01 07:28 UTC by Christine Ludszuweit
Modified: 2012-04-30 00:20 UTC (History)
0 users



Attachments
FO xml file that has the problem (8.69 KB, text/xml)
2011-08-01 07:28 UTC, Christine Ludszuweit
Details
PDF file that shows the problem with the alignment of the pages (12.49 KB, application/pdf)
2011-08-01 07:29 UTC, Christine Ludszuweit
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christine Ludszuweit 2011-08-01 07:28:38 UTC
Created attachment 27336 [details]
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
Comment 1 Christine Ludszuweit 2011-08-01 07:29:31 UTC
Created attachment 27337 [details]
PDF file that shows the problem with the alignment of the pages
Comment 2 Glenn Adams 2012-04-07 01:44:53 UTC
resetting P2 open bugs to P3 pending further review
Comment 3 Glenn Adams 2012-04-21 05:39:32 UTC

*** This bug has been marked as a duplicate of bug 49781 ***
Comment 4 Glenn Adams 2012-04-30 00:20:41 UTC
batch transition resolved+duplicate to closed+duplicate