that's funny, the exact same problem was reported by one of my clients
today, so I had a closer look and created
It seems that this was caused by the changes for
I'll commit a fix a bit later.
On 13.07.2015 04:23, Carlos Villegas wrote:
When a blank page is generated because the page-sequence specified
force-page-count, does this page also match the page-position=last
It seems in some old versions of FOP (1.0?) this was not the case,
page-position=last didn't match the padding pages.
We were actually counting on that behavior using
conditional-page-master-reference, but it seems the current version
doesn't work that way anymore.
Actually we were getting some unreliable output, when the last page
(before the blank page) is full, it didn't match page-position=last,
but when there was some space left it was matching. I was going to
report that as a bug, but then I tested versions 1.1 and 2.0 and they
It seems that in the current version of FOP a generated blank page
also matches page-position=last.
We were trying to generate a "End of Section" message on the footer of
the last page with content using a special master matching
But this doesn't work if the last page is a generated blank page,
which matches a different master in our case.
So, what's the correct behavior: is a generated blank page at end of
page sequence also the last page?
If that's the case, then there's no condition that matches the last
page with content, is this right?