Also, FWIW, PDF supports the equivalent of an HTML "image map" (single link on document but with server-based interaction on the coordinate). Not sure if that's what you want, but that's available as well.
-----Original Message----- From: 1T3XT info [mailto:[email protected]] Sent: Sunday, September 19, 2010 2:20 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Creating links to/from areas of an image On 19/09/2010 2:03, Bob Barnes wrote: > As an aside I just ordered the book. > I certainly hope there's a decent example of > creating links on different areas of images;-) A links is a specific type of annotation. There's an example that adds annotations to an image; that is: a single image. See for instance: http://examples.itextpdf.com/results/part2/chapter07/movie_posters_1.pdf Every movie poster has a link to IMDB. There's an example that adds different annotations at specific places (no images involved, but that doesn't matter): Annotations that provide more info: http://examples.itextpdf.com/results/part2/chapter07/timetable_help.pdf Links to IMDB: http://examples.itextpdf.com/results/part2/chapter07/timetable_links.pdf Stamp and line annotations: http://examples.itextpdf.com/results/part2/chapter07/timetable_tickets.pdf As far as I know, there is no specific example that creates links on different areas of images, because there is no need for such an example: the general principles are explained, everything you need to know to build a solution is laid out, but you'll still have to write some code yourself (and by reading the book, you'll have to learn how annotations work). If you have the coordinates of the clickable areas, it's just a matter of adding the annotation at those coordinates, but please take the time to learn before you start saying things like "it doesn't work!" If management needs a solution faster, they can always hire a consultant: http://www.itextpdf.com/forum/viewtopic.php?f=52&t=3 -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
