Please stay on the mailing-list regarding the technical question.
Note that your question is still unclear.
In your initial question you say that you have existing PDF documents
with links and that you want to change these links upon merging.
Now you say:
On 9/1/2014 9:21 AM, Aritz wrote:
I'm using PdfAction implemented like follows:
PdfAction link = PdfAction./gotoLocalPage/(Integer./parseInt/(number),
*new* PdfDestination(PdfDestination./XYZ/, rect.getLeft(),
rect.getTop(), 0), writer2);
Then I use this link by calling PdfContentByte.setAction(...).
I don't understand what you mean. In this snippet you are creating links
from scratch.
Are you saying that your initial documents are actually documents you're
creating from scratch?
Why are you using gotoLocalPage() if you have two different PDF documents?
Please be more specific. Rephrase your question in a way that your
mother would understand it, not in a way that requires us to consult a
crystal ball.
If you're creating the TOC from scratch, then there's an example that
more or less explains your use case in chapter 7 of the book iText in
action: http://itextpdf.com/examples/iia.php?id=133
Depending on what you really need (but that's not clear), the merge
examples in the sandbox may also be helpful:
http://itextpdf.com/sandbox/merge
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php