muleiro wrote:
> Ok, thank u very much.
> 
> "although what you're doing is exactly 
> the same."
> 
> I'd say "what i wanted to do" because i haven't find the way to do it yet.

You're doing it for one page.
It demands a little bit more programming to do it for more pages.

In the example, there is a loop over all the fields to store
the coordinates in an array:
coordinates[i] = new Rectangle(
   positions[1], positions[2] + 3, positions[3], positions[4] + 3);
As you can see, only 4 out of 5 elements of the positions array
are used. You didn't use positions[0].

If you want to 'do what you want to do', you need this first element:
it contains the page number of the field.

You need to adapt the example, so that you store not only
the coordinates as if they are all on page 1, but also store
the page number.

The rest is quite similar.
You add page 1 of PDF A twice to PDF B and add only the fields
at the coordinates for page 1, then you add page 2 of PDF A as
many times as you want to PDF B and add the coordinates for page 2.

br,
Bruno

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to