Is there a way to create hotspots in my PDF documents over irregular 
shapes like pie chart sections?

JFreeChart puts tooltips and hyperlinks over pie chart slices using Java 
mouse events and HTML imagemaps.  The areas can be described as arcs 
(boundingbox, angle1, angle2) or as imagemap area tags like....

<area shape="poly" 
coords="634,489,644,482,656,478,667,475,680,474,680,551,680,551" 
title="Q1: (3, 10%)" alt="" 
href="linkThis.jsp?category=Sales%2FQ5&amp;amp;pieIndex=4"/>

...which come from a java.awt.geom.PathIterator over a java.awt.Shape 
(the pie section).

I have found iText methods that add hotspots to text, images, and 
rectangles, especially Annotations in Chapter 15, but not for arbitrary 
polygons.

I could add hotspots to the PDF at the same moment that JFreeChart is 
drawing to iText's Graphics2D object, or I could do some post-processing 
that iterates over all the hot areas after the chart is finished drawing.

Thanks for any suggestions.



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to