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 Saif Khaja <ks...@hotmail.com> on 2002/03/22 03:29:13 UTC

fo:basic-link on svg image

Hi,

I was trying to set a link on one of the svg images to point out to a 
bookmark id set on the pdf page. Has anyone tried this before.

It works fine for text data. For example,
<fo:basic-link internal-destination="mark1">
   Testing link
</fo:basic-link>

For svg images, this doesnt work however. The following lines will not even 
display the svg rectangle image.

<fo:basic-link internal-destination="mark1">
   <svg:rect x="100" y="100" width="100" height="200"/>
<fo:basic-link>


Referring to svg examples, links in svg use <a>, which apparently works for 
a standalone svg image, but doesnt work in fop.

Any help appreciated.
Thanks,
Saif.




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


Re: fo:basic-link on svg image

Posted by Keiron Liddle <ke...@aftexsw.com>.
The second example is not valid.
You cannot simply place some piece of svg inside fo. SVG can only be used 
in an instream-foreign-object and the xml inside that fo object must be 
valid for svg.

As SVG cannot link internally in the fo document then you cannot do it 
with svg.


On 2002.03.22 03:29 Saif Khaja wrote:
> Hi,
> 
> I was trying to set a link on one of the svg images to point out to a 
> bookmark id set on the pdf page. Has anyone tried this before.
> 
> It works fine for text data. For example,
> <fo:basic-link internal-destination="mark1">
>   Testing link
> </fo:basic-link>
> 
> For svg images, this doesnt work however. The following lines will not 
> even display the svg rectangle image.
> 
> <fo:basic-link internal-destination="mark1">
>   <svg:rect x="100" y="100" width="100" height="200"/>
> <fo:basic-link>
> 
> 
> Referring to svg examples, links in svg use <a>, which apparently works 
> for a standalone svg image, but doesnt work in fop.
> 
> Any help appreciated.
> Thanks,
> Saif.