https://issues.apache.org/bugzilla/show_bug.cgi?id=54074
Priority: P2
Bug ID: 54074
Assignee: [email protected]
Summary: page-position="only" in
conditional-page-master-reference does not work
Severity: normal
Classification: Unclassified
Reporter: [email protected]
Hardware: PC
Status: NEW
Version: trunk
Component: page-master/layout
Product: Fop
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.
--
You are receiving this mail because:
You are the assignee for the bug.