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

[PATCH] AFP TLEs and NOPs not in the order described in the FO

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.5
    • None
    • unqualified
    • None
    • Operating System: Linux
      Platform: PC
    • 50705

    Description

      I'll include a test case FO and before and after AFP documents. The issues is as follows; if you define a combination of TLEs and NOPs in the simple-page-master, regardless of the order, FOP will print the TLEs first then the NOPs.

      The reason is because they're held in different ArrayLists in o.a.f.afp.modca.AbstractPageObject. Why it has been done this way? I don't know, there may be a perfectly good reason I'm not aware of. But since they derive from a common ancestor (AbstractStructuredObject), I've removed the list that stores the TLEs separately, so that TLEs and NOPs are stored in the same ArrayList. This means that the TLEs and NOPs are printed in the order they appear in the FO.

      Attachments

        1. patch.diff
          4 kB
          Mehdi Houshmand
        2. test.fo
          3 kB
          Mehdi Houshmand

        Activity

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            med1985@gmail.com Mehdi Houshmand
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: