Bug 46369

Summary: AFP Renderer Extensions not working
Product: Fop - Now in Jira Reporter: Chris Bowditch <bowditch_chris>
Component: generalAssignee: fop-dev
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: 0.95   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   

Description Chris Bowditch 2008-12-09 09:41:01 UTC
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.
Comment 1 Chris Bowditch 2008-12-09 09:45:43 UTC
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.
Comment 2 Chris Bowditch 2008-12-10 01:11:52 UTC
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.
Comment 3 Chris Bowditch 2008-12-10 07:15:10 UTC
I've now managed to get TLEs working as well. Fix committed in revision 725308
Comment 4 Glenn Adams 2012-04-01 06:35:35 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed