Have a look at the example headers_and_watermarks.java at http://itextpdf.sf.net. Use ColumnText.showTextAligned() to put the chunks. Note that if what you are doing is to just stamp something on an existing pdf you'll get better results with PdfStamper.
----- Original Message ----- From: "Paul Krasucki" <[EMAIL PROTECTED]> To: "Paulo Soares" <[EMAIL PROTECTED]>; <[email protected]> Sent: Saturday, January 08, 2005 9:04 PM Subject: RE: [iText-questions] anchor in a template > Thanks, information helps, but problem still > unsolved... Is there any other way around it? Bottom > line is I need to create a box with some text, page > numbers, and link and put it in a predefined place on > the page (under the page I copied from another pdf). > Regards, > -Paul > > --- Paulo Soares <[EMAIL PROTECTED]> wrote: > > > Anchors are done with Chunk.setAnchor() but that > > won't help you in a > > template as the reference position would be relative > > to the template and > > not the page. Links must always be placed in > > PdfWriter.getDirectContent() or > > PdfWriter.getDirectContentUnder(). > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > > > [mailto:[EMAIL PROTECTED] > > On > > > Behalf Of Paul Krasucki > > > Sent: Saturday, January 08, 2005 1:06 PM > > > To: Paulo Soares; > > [email protected] > > > Subject: Re: [iText-questions] anchor in a > > template > > > > > > Thanks for the answer - here is clarification: > > > I have PdfTemplate object which I add to some > > pages in > > > onEndPage(...) method. I would like to have there > > a > > > fixed link like http:\\somewebsite. I cannot add > > > Anchor directly and I don't see how I could wrap > > an > > > Anchor object into some element that I could add > > to > > > the template... > > > Thanks, > > > -Paul > > > > > > --- Paulo Soares <[EMAIL PROTECTED]> wrote: > > > > > > > Links are always relative to the page so, > > depending > > > > on what you call > > > > 'template' it may or may not be doable. > > > > > > > > ----- Original Message ----- > > > > From: "Paul Krasucki" <[EMAIL PROTECTED]> > > > > To: <[email protected]> > > > > Sent: Saturday, January 08, 2005 2:24 AM > > > > Subject: [iText-questions] anchor in a template > > > > > > > > > > > > > I need to add an anchor (external link) to a > > > > template > > > > > and I could not find it in any of the > > examples. > > > > Help > > > > > will be greatly appreciated. > > > > > Thanks, > > > > > -Paul > > > > > > > > > > > > > > > > > > > > > > > > > __________________________________ > > > > > Do you Yahoo!? > > > > > The all-new My Yahoo! - What will yours do? > > > > > http://my.yahoo.com > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > The SF.Net email is sponsored by: Beat the > > > > post-holiday blues > > > > > Get a FREE limited edition SourceForge.net > > t-shirt > > > > from ThinkGeek. > > > > > It's fun and FREE -- well, > > > > almost....http://www.thinkgeek.com/sfshirt > > > > > > > _______________________________________________ > > > > > iText-questions mailing list > > > > > [email protected] > > > > > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > > > > > > > > > > > > > > > > > > > > > __________________________________ > > > Do you Yahoo!? > > > Take Yahoo! Mail with you! Get it on your mobile > > phone. > > > http://mobile.yahoo.com/maildemo > > > > > > > > > > > > ------------------------------------------------------- > > > The SF.Net email is sponsored by: Beat the > > post-holiday blues > > > Get a FREE limited edition SourceForge.net t-shirt > > from ThinkGeek. > > > It's fun and FREE -- well, > > almost....http://www.thinkgeek.com/sfshirt > > > _______________________________________________ > > > iText-questions mailing list > > > [email protected] > > > > > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > > > > > > > > __________________________________ > Do you Yahoo!? > The all-new My Yahoo! - What will yours do? > http://my.yahoo.com > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
