Bug 46369 - AFP Renderer Extensions not working
Summary: AFP Renderer Extensions not working
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.95
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-09 09:41 UTC by Chris Bowditch
Modified: 2012-04-01 06:35 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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