[
https://issues.apache.org/jira/browse/FOP-3181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17849346#comment-17849346
]
João André Gonçalves commented on FOP-3181:
-------------------------------------------
[[email protected]] I managed to replicate the issue as well. I
simplified the fo to make it easier to debug through.
I noticed that it first determines the pages properly, but then does a second
pass through the page master sequence and that's where it calculates the pages
wrongly. It seems to be an issue with the IPD change, but not sure where. On
the second pass it's only creating 2 pages, hence the issue.
> Complex page master chooses wrong simple page master
> ----------------------------------------------------
>
> Key: FOP-3181
> URL: https://issues.apache.org/jira/browse/FOP-3181
> Project: FOP
> Issue Type: Bug
> Affects Versions: 2.9
> Environment: Windows 10, embedded FOP into Java code
> Reporter: Martin Leitner
> Priority: Major
> Attachments: doc.areatree, doc.fo, doc.pdf, page.pdf, simpleDoc.fo
>
>
> When rendering the attached doc.fo file to the either pdf or an area tree
> (also attached), pages 1, 2, and 3 use the expected page masters, but then
> pages 4 and 5 use the page master that should only be used for the first
> page. In the area tree it becomes apparent that the page number is reset to
> 1, although there is only one page-sequence.
> It is a test file that I got from a customer. If I replace some of the weird
> content with regular lorem ipsum, the bug goes away, but so far I could not
> identify the offending part.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)