Details
-
Bug
-
Status: Resolved
-
Resolution: Fixed
-
2.5
-
None
-
Operating System:
Platform: PC
-
54074
Description
Using the attribute page-position="only" in a conditional-page-master-reference in order to produce a different page header if the document has only one page does not work.
I get the header for multiple page even if I only have one page in the final output document.
<fo:page-sequence-master master-name="Section_1">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-reference="Single" page-position="only" />
<fo:conditional-page-master-reference master-reference="Multiple" />
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
If I change the attribute to last, it works fine.
<fo:page-sequence-master master-name="Section_1">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-reference="Single" page-position="last" />
<fo:conditional-page-master-reference master-reference="Multiple" />
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
I attached fo and pdf to reproduce the issue.