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.
I discovered this by looking at the created pdf and
the link properties in Acrobat 6.0. The
localDestinations appear in the named destination list
when manually adding a link in Acrobat.

Am I making a mistake with use of localGoto and
localDestination?
Should I be using something different?

I want to be able to have multiple destinations on a
page that are linked to from one (or more) links on
one (or more) pages. 

Thanks,

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