[jira] [Commented] (FOP-1444) PDF table of contents generated with incorrect page number alignments
[ https://issues.apache.org/jira/browse/FOP-1444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16750463#comment-16750463 ] Jan Tošovský commented on FOP-1444: --- [~adelmelle] could you create patch with your changes? You result looks promising. > PDF table of contents generated with incorrect page number alignments > - > > Key: FOP-1444 > URL: https://issues.apache.org/jira/browse/FOP-1444 > Project: FOP > Issue Type: Bug > Components: renderer/pdf >Affects Versions: 0.94, trunk > Environment: Operating System: Windows XP > Platform: PC >Reporter: David H. Gutteridge > Attachments: FOP-1444-original.pdf, FOP-1444-original_after.pdf, > FOP_TOC_Bug_Test-dbk1.78-nospc.pdf, FOP_TOC_Bug_Test-dbk1.78.0-nospc.fo, > FOP_TOC_Bug_Test-dbk1.78.0.fo, FOP_TOC_Bug_Test-dbk1.78.pdf, > FOP_TOC_Bug_Test.dbk, FOP_TOC_Bug_Test.fo, FOP_TOC_Bug_Test.pdf, toc.fo, > toc.pdf > > > It seems there's a threshold where FOP does not align page number references > correctly when generating tables of contents in PDF documents. I see that you > have a reference to this in your FAQ (question 3.10), but it says "The most > recent FOP releases should have this problem fixed", I'm seeing this problem > with 0.94. > (I have a sample FO document I will attach, looks like the initial bug > reporting > interface doesn't let me do this.) -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (FOP-1444) PDF table of contents generated with incorrect page number alignments
[ https://issues.apache.org/jira/browse/FOP-1444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13797003#comment-13797003 ] Alexey Neyman commented on FOP-1444: To avoid any interference from other customizations I have, upload two PDFs - one built with standard 1.78.0 stylesheets, one with the toc.line template modified as described above (removing spaces around fo:leader). Pascal, I think you're confusing this issue with FOP-1162 - that one deals with possibly insufficient space allocation for page number citation. So, the question stands: is whitespace handling around fo:leader a bug or intended behavior? > PDF table of contents generated with incorrect page number alignments > - > > Key: FOP-1444 > URL: https://issues.apache.org/jira/browse/FOP-1444 > Project: Fop > Issue Type: Bug > Components: pdf >Affects Versions: 0.94, trunk > Environment: Operating System: Windows XP > Platform: PC >Reporter: David H. Gutteridge > Attachments: FOP_TOC_Bug_Test.dbk, FOP_TOC_Bug_Test-dbk1.78.0.fo, > FOP_TOC_Bug_Test-dbk1.78.0-nospc.fo, FOP_TOC_Bug_Test-dbk1.78-nospc.pdf, > FOP_TOC_Bug_Test-dbk1.78.pdf, FOP_TOC_Bug_Test.fo, FOP_TOC_Bug_Test.pdf > > > It seems there's a threshold where FOP does not align page number references > correctly when generating tables of contents in PDF documents. I see that you > have a reference to this in your FAQ (question 3.10), but it says "The most > recent FOP releases should have this problem fixed", I'm seeing this problem > with 0.94. > (I have a sample FO document I will attach, looks like the initial bug > reporting > interface doesn't let me do this.) -- This message was sent by Atlassian JIRA (v6.1#6144)
[jira] [Commented] (FOP-1444) PDF table of contents generated with incorrect page number alignments
[ https://issues.apache.org/jira/browse/FOP-1444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13796921#comment-13796921 ] Alexey Neyman commented on FOP-1444: Pascal: 1. You didn't really answer the question whether FOP's treatment of whitespace around fo:leader is a bug or intended behavior. By the fact that DocBook stylesheets do that even in the latest release (1.78.1), I'd say it's a bug in FOP (see the explicit inserting a space below): ... 2. I've regenerated the .fo using the stylesheets we use (that avoid placing space around fo:leader) and the resulting PDF has the numbers perfectly aligned. See attached PDF. Here's what we use for toc.line (note there's no with space; padding-* properties are used instead): > PDF table of contents generated with incorrect page number alignments > - > > Key: FOP-1444 > URL: https://issues.apache.org/jira/browse/FOP-1444 > Project: Fop > Issue Type: Bug > Components: pdf >Affects Versions: 0.94, trunk > Environment: Operating System: Windows XP > Platform: PC >Reporter: David H. Gutteridge > Attachments: FOP_TOC_Bug_Test.dbk, FOP_TOC_Bug_Test.fo, > FOP_TOC_Bug_Test.pdf > > > It seems there's a threshold where FOP does not align page number references > correctly when generating tables of contents in PDF documents. I see that you > have a reference to this in your FAQ (question 3.10), but it says "The most > recent FOP releases should have this problem fixed", I'm seeing this problem > with 0.94. > (I have a sample FO document I will attach, looks like the initial bug > reporting > interface doesn't let me do this.) -- This message was sent by Atlassian JIRA (v6.1#6144)
[jira] [Commented] (FOP-1444) PDF table of contents generated with incorrect page number alignments
[ https://issues.apache.org/jira/browse/FOP-1444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13796512#comment-13796512 ] Pascal Sancho commented on FOP-1444: To Alexey: the cited thread was about extra spaces that were taken into account, witch was unexpected; the current issue was related to FOP design, IIRC regarding area reservation for page-number-citation, witch content (i.e. the page number) is computed later after the area construction. The rendering is better with latest releases, but issue still persists in FOP 1.1. > PDF table of contents generated with incorrect page number alignments > - > > Key: FOP-1444 > URL: https://issues.apache.org/jira/browse/FOP-1444 > Project: Fop > Issue Type: Bug > Components: pdf >Affects Versions: 0.94 > Environment: Operating System: Windows XP > Platform: PC >Reporter: David H. Gutteridge > Attachments: FOP_TOC_Bug_Test.dbk, FOP_TOC_Bug_Test.fo, > FOP_TOC_Bug_Test.pdf > > > It seems there's a threshold where FOP does not align page number references > correctly when generating tables of contents in PDF documents. I see that you > have a reference to this in your FAQ (question 3.10), but it says "The most > recent FOP releases should have this problem fixed", I'm seeing this problem > with 0.94. > (I have a sample FO document I will attach, looks like the initial bug > reporting > interface doesn't let me do this.) -- This message was sent by Atlassian JIRA (v6.1#6144)
[jira] [Commented] (FOP-1444) PDF table of contents generated with incorrect page number alignments
[ https://issues.apache.org/jira/browse/FOP-1444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13796319#comment-13796319 ] Alexey Neyman commented on FOP-1444: A while ago I raised the same issue on the fop-users mailing list and got the following response: http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/201304.mbox/%3CCABKGwxnshb0ONWmzymJ=zszq8zhmgrowuobq6nm3kgny9_e...@mail.gmail.com%3E [[[ Behavior is related to xml blanks (white-space, line-feed, etc.) that are before or after fo:inline tags. You should avoid to use fo:inline when it is not required (replacing it with fo:wrapper when it is just used as properties carrier), or avoid to get extra blanks in your resulting xsl-fo. The latter can be done by surrending all constant strings with xsl:text element in XSLT. ]]] The attached test case has the same issue: single space before . Funny thing is, this bug was submitted against FOP 0.94. As I mentioned in the email thread referenced above, space next to fo:leader worked fine in FOP 1.0, but again produced misaligned output in FOP 1.1. Could anyone clarify whether FOP's handling of whitespace is a bug (and "avoiding whitespace" is a workaround), or was it intentional change in FOP 1.1? > PDF table of contents generated with incorrect page number alignments > - > > Key: FOP-1444 > URL: https://issues.apache.org/jira/browse/FOP-1444 > Project: Fop > Issue Type: Bug > Components: pdf >Affects Versions: 0.94 > Environment: Operating System: Windows XP > Platform: PC >Reporter: David H. Gutteridge > Attachments: FOP_TOC_Bug_Test.dbk, FOP_TOC_Bug_Test.fo, > FOP_TOC_Bug_Test.pdf > > > It seems there's a threshold where FOP does not align page number references > correctly when generating tables of contents in PDF documents. I see that you > have a reference to this in your FAQ (question 3.10), but it says "The most > recent FOP releases should have this problem fixed", I'm seeing this problem > with 0.94. > (I have a sample FO document I will attach, looks like the initial bug > reporting > interface doesn't let me do this.) -- This message was sent by Atlassian JIRA (v6.1#6144)