Re: Problem while copying PDF
"Aritz" <[email protected]>
| Newsgroups | gmane.comp.java.lib.itext.general |
|---|---|
| Message-ID | <[email protected]> |
The PDF I get for merging, is built by a partner team, which uses iText. I take a look into the JAR file they have deployed, and saw that they include the links in their PDF as I mentioned, with PdfAction. So the PDF Ill receive for merging will have these kind of link that I should preserve. And Im losing them while merging. Aritz Muniáin Sánchez BPM&SOA Solutions Tlf. +34 685 56 04 52 E.mail: [email protected] <mailto:[email protected]> Web: <http://www.bpmsoasolutions.com/> http://www.bpmsoasolutions.com From: iText mailing list [mailto:[email protected]] Sent: lunes, 01 de septiembre de 2014 17:49 To: Aritz; Post all your questions about iText here Subject: Re: [iText-questions] Problem while copying PDF 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: Im 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 [email protected] 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
image001.png
(image/png, 9.9 KB) - not displayed