--- Paulo Soares <[EMAIL PROTECTED]> wrote: 
>  
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] 
> >
> [mailto:[EMAIL PROTECTED]
> On 
> > Behalf Of Neil Darroch
> > Sent: Sunday, December 05, 2004 11:42 PM
> > To: [EMAIL PROTECTED]
> > Subject: [iText-questions] localDestination &
> localGoto
> > 
> >     
> > I am using the following code to set a local
> > destination at a specific point on a page of a
> > document I create:
> > 
> > cb.setTextMatrix(numleft, numtop);
> > cb.localDestination(id, new
> > PdfDestination(PdfDestination.FITH,0));
> > 
> > I put several of these on a page to mark specific
> > points within the 'text'.
> > 
> > For another page I use the following to set a link
> to
> > one (or more) of the previously made destinations
> > 
> > cb.localGoto(id, numleft, numtop, numleft +
> numwidth,
> > numtop + numheight);
> > 
> > where cb is PdfContentByte.
> > 
> > My problem is that the created links don't appear
> to
> > go to the intended destinations. Instead they link
> to
> > the page on which the localdestination is created.
> 
> What page number would you expect?
>  
I was not expecting a page number but rather the named
destination on a page.
The links go to the page that I created the local
destinations on. However, they do not go specifically
to the position of the created local destination. This
is what I would like.

I want to have link(s) on Page X that link to one (or
more) locations in the text on Page Y.

Is my use of localDestination and localGoto correct?

cheers,

Neil.




        
        
                
___________________________________________________________ 
ALL-NEW Yahoo! Messenger - all new features - even more fun! 
http://uk.messenger.yahoo.com


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to