Fop
  1. Fop
  2. FOP-1613

AFP Renderer Extensions not working

    Details

    • Type: Bug Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 0.95
    • Fix Version/s: None
    • Component/s: unqualified
    • Labels:
      None
    • Environment:
      Operating System: Windows XP
      Platform: PC
    • External issue ID:
      46369

      Description

      AFP Renderer Extensions, such as TLE and Page Overlays are not working in FOP Trunk. The extensions are documented here:

      http://xmlgraphics.apache.org/fop/0.95/output.html#afp-tag-logical-element

      I have attached a simple test File that tests TLEs and Page Overlays. I suspect NOPs and Page Segment Extension are broken too, but I've yet to try them.

        Activity

        Chris Bowditch created issue -
        Hide
        Chris Bowditch added a comment -

        I've done some initial investigation and found one bug that prevented the extensions being detected: The AFPElement in package o.a.fop.render.afp.extensions was using Qualified Name for elements and later checking local name for the name of the elements. This was a simple change that allows the logic in AFPRender.renderPageObjectExtensions method to work. However the extension fields still have no affect on the output. I will continue to investigate this some more later.

        Show
        Chris Bowditch added a comment - I've done some initial investigation and found one bug that prevented the extensions being detected: The AFPElement in package o.a.fop.render.afp.extensions was using Qualified Name for elements and later checking local name for the name of the elements. This was a simple change that allows the logic in AFPRender.renderPageObjectExtensions method to work. However the extension fields still have no affect on the output. I will continue to investigate this some more later.
        Hide
        Chris Bowditch added a comment -

        Update: the change I mentioned yesterday is enough to get Overlays, Page Segments and NOPs working. TLEs seem to fail because the method canWrite in AbstractResourceGroupContainer returns false on both calls for TLEs. A tweak there allows the TLE to be output but the byte record seems to be incorrect.

        Show
        Chris Bowditch added a comment - Update: the change I mentioned yesterday is enough to get Overlays, Page Segments and NOPs working. TLEs seem to fail because the method canWrite in AbstractResourceGroupContainer returns false on both calls for TLEs. A tweak there allows the TLE to be output but the byte record seems to be incorrect.
        Hide
        Chris Bowditch added a comment -

        I've now managed to get TLEs working as well. Fix committed in revision 725308

        Show
        Chris Bowditch added a comment - I've now managed to get TLEs working as well. Fix committed in revision 725308
        Hide
        Glenn Adams added a comment -

        batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed

        Show
        Glenn Adams added a comment - batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed

          People

          • Assignee:
            fop-dev
            Reporter:
            Chris Bowditch
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development