Venkat, first of all you probably need to subclass AFPPageSetupElement to add support for carrying the offset coordinates. AFPElementMapping would then also need to be changed. Then you'd need to move on to AFPDocumentHandler.handleExtensionObject where the extension is converted into calls into the AFP library. DataStream.createIncludePageOverlay would then also need to be extended. And so on and on...
I guess one challenge is to make the specification of the offset user-friendly. I don't think it's acceptable to expect from the user to know what numeric value would need to be specified to get the right placing. Maybe you can reuse something from the FO property subsystem to parse arbitrary lengths, internally work with millipoints and then convert that to the final value. On 01.10.2009 16:52:23 Venkat Reddy wrote: > Hi, > > I want to include X and Y coordinates to the <afp:include-page-overlay> > definition, something like below.... > > <afp:include-page-overlay id="IPO001" name="O1tcgas1" *x="300" > y="500"*/> > > in PageObject.java, the following method will be used when there is an > overlay referenced in a FO document. > public void *createIncludePageOverlay*(String name, *int x, int y*, > int orientation) > > where the X and Y coordinates hardcoded as '0' in *DataStream.java*. I > want to pass these values through the above page overlay definition, Can > someone tell me, how do I pass these coordinates? > > Thanks, > Venkat. Jeremias Maerki
