Thank you very much. I just downloaded the book, and will go through Chapter 12. I hope that you don't mind my asking further questions as I get into the OCG example.
Best, Pat -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 1T3XT info Sent: Saturday, March 22, 2008 11:13 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Using Layers To Construct a PDF Foreground/Background Dynamically Pat Waldo wrote: > I have used iText but have a question on which I would very much > appreciate some help. I would like to create in iText a foreground PDF > that is set of images (some with hyperlinks), for example, a trail map. > I would like to include in the document a hyperlink to the actual > background terrain map PDF document itself, which would be retrieved by > clicking on the hyperlink in the foreground PDF. My objective is to > pass the foreground PDF with the trail map to the client browser session > allowing the client to dynamically superimpose the background map into > the document so that the foreground trail map overlays the background > map on the client side. > > > > Ideally I would like to have this occur seamlessly in the client browser > session without the user needing to click anything with some embedded > code in the PDF but my first question is how to create the foreground > layer that can pull in the background layer in a client browser session. > > > > Any suggestions very much appreciated? Use OCG. There's an example of such a map in chapter 12 of the book "iText in Action". First the map looks like a raster image, when the user zooms in, he says a vector image. There's a "Layers pane" on the left he can use to enable/disable layers. This pane could easily be replaced by links (as described elsewhere in the book). -- This answer is provided by 1T3XT BVBA ------------------------------------------------------------------------- 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/ ------------------------------------------------------------------------- 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/