Hi Bharat,

Sorry for the delay in getting back to you but I'm a little swamped with work at the moment.

As you have probably already discovered objects are placed in resource groups using the afp:resource-level foreign attribute (see http://xmlgraphics.apache.org/fop/trunk/output.html#afp-foreign-attributes-resource). Unfortunately only images and svg objects are currently supported using <fo:external-graphic/> and <instream-foreign-object/>. There is however underlying support for creating overlays within resource groups in org.apache.fop.afp.AFPDataObjectFactory.createResource (see line 226). So in order to achieve this feature you would need to implement a FOP AFP extension for overlays in org.apache.fop.render.afp.extensions (see other extension implementations in this package) and have it make use of the afp:resource-level foreign attribute. Then you would need to handle this new extension in org.apache.fop.render.afp.AFPDocumentHandler.handleExtensionObject() and maybe also in org.apache.fop.render.afp.AFPRenderer.renderPageObjectExtensions() for backwards compatibility. You would also need to make some additional changes to resourceManager.createObject() and make a call to it, passing it a DataObjectInfo implementation which contains details of the overlay. The AFPResourceManager then in turn deligates the creation of resources to the AFPDataObjectFactory by making a call to dataObjectFactory.createResource().

Unfortunately I do not have any time to help implement this, I only have minimal time to spend on FOP due to other work commitments, but I would be happy to help you further and will try to support you with the implementation either on or off list.

Adrian.

attaluri1210 wrote:
Andreas,

I am able to write the page segment and Overlay e.t.c in the AFP output
file. But what i am looking is how to write it in the resource group. Say
for example if we write a external image and give the below in config

<resource-group-file>resources.afp</resource-group-file>
<default-resource-levels goca="print-file" bitmap="print-file"/>

the image will be written in the resource group. In the same manner when i
write a overlay i was not able to see it in the resource group.

Sorry, if i have to be still be more specific.

Thanks,
Bharat



Andreas Delmelle-2 wrote:
On 16 Jun 2009, at 06:04, attaluri1210 wrote:

Hi Bharat

Can any one Guide me how to write PageSegment,Overlay e.t.c in to the
Resource Group.
Can you be more specific? What precisely is missing from the samples provided at http://xmlgraphics.apache.org/fop/0.95/output.html#afp-extensions ?

Does this feature included in the Trunk?.
Yes, it was already supported in 0.95.


Regards

Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org






---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to