You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Ramesh Suribhatla <ra...@yahoo.com> on 2002/05/28 08:55:24 UTC

Images with Hyperlink

Hi,

I am having a problem to create a hyperlink to an
image. The HTML and the corresponding FO generated are
as below.

<a href="http://www.sun.com">
   <img border="0" src="lgsun.gif" alt="Sun">
</a>

<fo:basic-link external-destination =
"http://www.sun.com">
   <fo:external-graphic src =
"file:C:\Ramesh\html2fo\lgsun.gif"/>
</fo:basic-link>

The image is being shown in PDF but it is not having a
link.

Is this FO OK? If not, can you please tell me what is
wrong and also give me some advice if you have
experienced this problem. 

Thank you,
Ramesh

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

Re: Images with Hyperlink

Posted by Keiron Liddle <ke...@aftexsw.com>.
Hi Ramesh,

As mentioned before what you are trying is not supported.

I was going to say you could use svg to have a link around an image but
it appears that there are a couple of bugs.

On Tue, 2002-05-28 at 08:55, Ramesh Suribhatla wrote:
> Hi,
> 
> I am having a problem to create a hyperlink to an
> image. The HTML and the corresponding FO generated are
> as below.
> 
> <a href="http://www.sun.com">
>    <img border="0" src="lgsun.gif" alt="Sun">
> </a>
> 
> <fo:basic-link external-destination =
> "http://www.sun.com">
>    <fo:external-graphic src =
> "file:C:\Ramesh\html2fo\lgsun.gif"/>
> </fo:basic-link>
> 
> The image is being shown in PDF but it is not having a
> link.
> 
> Is this FO OK? If not, can you please tell me what is
> wrong and also give me some advice if you have
> experienced this problem. 
> 
> Thank you,
> Ramesh



Re: Images with Hyperlink

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Ramesh Suribhatla wrote:
> I am having a problem to create a hyperlink to an
> image.

You are trying to use an image as a hot spot for a
link. This is currently not supported by FOP. You
can only use text. There is no really good workaround.

J.Pietschmann