For anyone who has been following this Thread:


Image img = Image.getInstance("c:/beccapark.jpg");
img.scaleAbsolute(150,250);
img.setAbsolutePosition(50,50);

float zoom = 4.0f;

PdfDestination d = new PdfDestination(PdfDestination.XYZ, 0, 300, zoom);
cb.addImage(img);
cb.setAction(PdfAction.gotoLocalPage(1, d, writer), 50f,50f,200f,300f);



The above code will zoom to the image when clicked.

Hope this helps anyone else needing something like this.

Many thanks again to Leonard.

Bill Ensley
Bear Printing



-----Original Message-----
From: Leonard Rosenthol [mailto:[EMAIL PROTECTED]
Sent: Monday, October 04, 2004 5:51 PM
To: Bill Ensley; iText Mail Group
Subject: RE: [iText-questions] zoom to specified area with action


At 04:55 PM 10/4/2004, Bill Ensley wrote:
>I found the "Named Destinations" and understand how they work, am
>I correct that they need to be tied to an outline?

         Not at all!!

         They are "global entries" in a special (Names) table in the 
PDF.  They can be used anytime you have an Action (GoTo <name> instead of 
GoTo <page 1>).

         I haven't looked into this part of iText, so it may be something 
that has to be added...


Leonard

---------------------------------------------------------------------------
Leonard Rosenthol                            <mailto:[EMAIL PROTECTED]>
Chief Technical Officer                      <http://www.pdfsages.com>
PDF Sages, Inc.                              215-938-7080 (voice)
                                              215-938-0880 (fax)



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to