Genaro Tamborindeguy wrote:
> I have an assignment to work 
> with iText, consist on injecting two links on a pdf document, each link 
> point to differents pdf documents.

You have to add links to EXISTING documents.

> The problem is that I can´t manipulate(edit) the pdf,

You can but you don't know how.

> what I tried was this: I created a class 
> HeaderFooterAtach that extends PdfPageEventHelper where I override the 
> method onEndPage () that create only a footer (a table with two cells) 
> where  I add the links to different  documents.

Now you confuse me.
Based on the initial requirement, I assumed that you were talking about 
EXISTING documents to which you need to add links. Now you're saying 
that you are using functionality that was designed for document that are 
being created from scratch only.

> This is because I have several pdf documents with one or two pages  at 
> maximum each documents, and I have no way to go from one document to 
> another. 

OK, so you ARE talking about EXISTING documents.

> I try to edit a copy of the original document and add the 
> footer, but I can´t add this.

But you are using functionality that was written for NEW documents.

> I tried with an example that the iText book provides, that work 
> perfectly. I don´t know if I´m omitting something or what.

Are you talking about the first or the second edition? In the second 
edition there are plenty of similar examples in chapter 7.

> What I need is not the solution to the problem, but just some ideas or a 
> brief comment how to do it.

I guess you already know how to create the footer with PdfPTable 
(because you say you've already created it for the page event).
You need to forget about page events (because you're working with 
existing documents), and you need to use PdfStamper to add the PdfPTable 
to every page.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to