I have a requirement where I need to portray an image using xsl-fo and the user should be able to click within the text / particular location of the image. To explain it further,
- I have an image
- It contains text
- I have the co-ordinates of where the text occurs and need to provide hyper-link for those co-ordinates.
So, when I click on the text, I should be able to traverse to another location in the PDF document.
I have tried with <area>
tag mentioning the co-ordinates within <fo:block>
, but it does not work.
My Fo structure is as follows:
<fo:block> <fo:external-graphic content-width="scale-to-fit" content-height="100%" width="100%" src="figures/test.png"/><area shape="rect" coords="148,147,195,162" <fo:basic-link>xyz</fo:basic-link></area>
</fo:block>
Could you please let me know if anyone has tried something like this and help me out?