Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2148

page-position="only" in conditional-page-master-reference does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 2.5
    • 2.2
    • layout/unqualified
    • 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.

      Attachments

        1. onlypage.fo
          2 kB
          ffimbel
        2. onlypage.fo.pdf
          5 kB
          ffimbel
        3. lastpage.fo
          2 kB
          ffimbel
        4. lastpage.fo.pdf
          5 kB
          ffimbel

        Activity

          People

            Unassigned Unassigned
            ffimbel@gmail.com ffimbel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: