[GeoNetwork-devel] Help Needed while printing Metadata to PDF - Add organization specific logo

Hello All,

I am very new to Geonetwork and this community. This is my first post.:slight_smile:
I have a requirement where I need to put organization specific logo on PDF instead of Geonetwork.

I figured out that metadafop.xsl has a template banner which does this job.

<xsl:template name=“banner”>


<xsl:attribute name=“src”>
url(‘<xsl:value-of
select="concat(‘http://’, //server/host,’:‘, //server/port, /root/gui/url,'/images/header-left.jpg’)" />')"
</xsl:attribute>
</fo:external-graphic>


</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:template>

If I simply change the image to organization specific logo, then I get following error.
UnsupportedOperationException : readRaster not supported!

Here is a stack trace

08:12:13,757 INFO [STDOUT] 2012-11-21 08:12:13,757 ERROR [jeeves.service] - → (C) stylesheet : C:[jboss-4.0.5.GA](http://jboss-4.0.5.GA)\server\default.\tm
p\deploy\tmp5900207660168957341geonetwork-exp.war/xsl/portal-present-fop.xsl
08:12:13,757 INFO [STDOUT] 2012-11-21 08:12:13,757 ERROR [jeeves.service] - → (C) message : readRaster not supported!
08:12:13,757 INFO [STDOUT] 2012-11-21 08:12:13,757 ERROR [jeeves.service] - → (C) exception : UnsupportedOperationException
08:12:13,772 INFO [STDOUT] 2012-11-21 08:12:13,772 DEBUG [jeeves.service] - Raised exception while executing service

readRaster not supported!
UnsupportedOperationException











Have anybody faced this issue? Any idea about solution??

Hello All,

Can someone please take look at this request?

Many thanks in advance

Kind Regards
Amol Relkar

On Wed, Nov 21, 2012 at 8:16 AM, Amol Relkar <amol171985@anonymised.com> wrote:

Hello All,

I am very new to Geonetwork and this community. This is my first post.:slight_smile:
I have a requirement where I need to put organization specific logo on PDF instead of Geonetwork.

I figured out that metadafop.xsl has a template banner which does this job.

<xsl:template name=“banner”>


<xsl:attribute name=“src”>
url(‘<xsl:value-of
select="concat(‘http://’, //server/host,’:‘, //server/port, /root/gui/url,'/images/header-left.jpg’)" />')"
</xsl:attribute>
</fo:external-graphic>


</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:template>

If I simply change the image to organization specific logo, then I get following error.
UnsupportedOperationException : readRaster not supported!

Here is a stack trace

08:12:13,757 INFO [STDOUT] 2012-11-21 08:12:13,757 ERROR [jeeves.service] - → (C) stylesheet : C:[jboss-4.0.5.GA](http://jboss-4.0.5.GA)\server\default.\tm
p\deploy\tmp5900207660168957341geonetwork-exp.war/xsl/portal-present-fop.xsl
08:12:13,757 INFO [STDOUT] 2012-11-21 08:12:13,757 ERROR [jeeves.service] - → (C) message : readRaster not supported!
08:12:13,757 INFO [STDOUT] 2012-11-21 08:12:13,757 ERROR [jeeves.service] - → (C) exception : UnsupportedOperationException
08:12:13,772 INFO [STDOUT] 2012-11-21 08:12:13,772 DEBUG [jeeves.service] - Raised exception while executing service

readRaster not supported!
UnsupportedOperationException











Have anybody faced this issue? Any idea about solution??