You can define action areas with PdfContentByte.setAction().

Best Regards,
Paulo Soares

----- Original Message ----- 
From: "Viktor Lacina" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 14:29
Subject: Re: [iText-questions] local destination


> Hi,
> 
> ok, real source depends on a lot of of my own classes, so i coud try to
> make some example from scratch :-)
> 
> 
> Documnet doc = new Document(PageSize.A4);
> PdfWriter wrt = PdfWriter.getInstance(doc, out);
> doc.open();
> PdfContentByte c = wrt.getDirectContent();
> 
> some c.add(Image) with absolute positioning
> 
> ColumnText ct = new ColumnText(c);
> Chunk ch = new Chunk("link", myFont);
> ch.setLocalGoto("xyz");
> ct.addText(new Phrase(11,ch)); 
> ct.setSimpleColumn(....)
> ct.go();
> // description of thumbnail should be link to large one
> 
> doc.newPage();
> ColumnText ct = new ColumnText(c);
> Chunk ch = new Chunk("dest", myFont);
> ch.setLocalDestination("xyz");
> ct.addText(new Phrase(11,ch)); 
> ct.setSimpleColumn(....)
> ct.go();
> 
> doc.close();
> 
> 
> BTW is there any way, how to define localDesctination to something other
> than chunk? .. for ex. Image ... cause i only want to skip to some [x,y]
> point of page
> 
> hope that helps :-)
> 
> BTW2 iText is good work anyway
> 
> thanks,
> 
> Viktor
> 
> 
> On Tue, 28 Jan 2003 17:15:00 -0000
> Paulo Soares <[EMAIL PROTECTED]> wrote:
> 
> > Showing some of your code would be helpful.
> > 
> > Best Regards,
> > Paulo Soares
> > 
> > > -----Original Message-----
> > > From: Viktor Lacina [SMTP:[EMAIL PROTECTED]]
> > > Sent: Tuesday, January 28, 2003 16:27
> > > To: Paulo Soares
> > > Subject: Re: [iText-questions] local destination
> > > 
> > > No, in fact it was only example (real document has 5-14 pages), but
> the
> > > problem stays :-)
> > > At first i need to generate some thumbnails which have to refer to
> its
> > > full size photos located on following pages.
> > > Only method i found was setDest/goto of chunk, but i need to refer
> to
> > > other TextColumn ...
> > > 
> > > any idea?
> > > 
> > > BTW i found some strange things about showing fonts in IE - cannot
> found
> > > embeded fonts  wraps Acrobat reader ... straight opening of saved
> PDF
> > > works well. ?!?
> > > 
> > > Viktor
> > > 
> > > On Tue, 28 Jan 2003 15:33:00 -0000
> > > Paulo Soares <[EMAIL PROTECTED]> wrote:
> > > 
> > > > Does your document have 30 pages?
> > > > 
> > > > Best Regards,
> > > > Paulo Soares
> > > > 
> > > > > -----Original Message-----
> > > > > From: Viktor Lacina [SMTP:[EMAIL PROTECTED]]
> > > > > Sent: Tuesday, January 28, 2003 15:27
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: [iText-questions] local destination
> > > > > 
> > > > > Hi,
> > > > > 
> > > > > Is there any way to define local jump from page 1 of PDF to
> > > destination
> > > > > defined for ex.  on page 30, somewhere in the middle?
> > > > > iText Throws me exception, that local destination does not
> exist, but
> > > hou
> > > > > could exists if i'm just generating page one??
> > > > > 
> > > > > any idea/solution?
> > > > > 
> > > > > thanks,
> > > > > 
> > > > > Viktor
> > > > > 
> > > > > 
> > > > > -------------------------------------------------------
> > > > > This SF.NET email is sponsored by:
> > > > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2
> See!
> > > > > http://www.vasoftware.com
> > > > > _______________________________________________
> > > > > iText-questions mailing list
> > > > > [EMAIL PROTECTED]
> > > > > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > > > 
> > 
> > 
> > -------------------------------------------------------
> > This SF.NET email is sponsored by:
> > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> > http://www.vasoftware.com
> > _______________________________________________
> > iText-questions mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > 
> 
> 
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to