developerashok wrote: > Hello Friends, > > My actual requirement is to modify an existing PDF by add some new > Data in the First and Last Page. In this process i need to add a Link > (Anchor) and Image(Logo) to existing PDF. I added Image easily by > using PdfStamper Object. for adding Link(Anchor) i struggled a lot. > finally i come to know that that is not possible .
Are you saying adding a Chunk with setAnchor using ColumnText doesn't work? > So i completed my > work by adding annotation with some link. OK, that's also possible. > Currently i got one more requirement like i.e > > I need to add some field to the PDF while it is being uploaded later in > first and last pages like Name, Company Name, Website address(Must be > an Anchor or Link). > > Later when it is being downloaded if customer enter his details then > above details must be replaced with entered details , if not do > nothing .finally send the document to web Browser (Client). > > Here My problems are -> > > 1. We cont add an Anchor to a Text field such that later we can change > those field Values. Explain: "Add an anchor to a text field such that you later can change those field values." Why do you need an Anchor to change a text field? Your question is not in tune with the requirements you've described earlier. > 2. How to replace exists data(including Anchor& image) with new data in > PDF. That has to be done at a low level. > 3. If i try to delete the whole page (first & last) and create a new > page with new details (I am loosing > some important data.) . that is not directly Provided. So what you're saying is: 3 is not an option. > I wanted describe my problem clearly , but i ended up writing big story. > > Please suggest me in solving this problem. You don't need to give code > to me . please explain how to solve problem . I will do the remaining..! I've used Occam's Razor on your question. I'm ignoring your chaotic explanation about adding an Anchor, I assume that all you want, is to add text fields to an existing document, fields that can be changed by an end user. These text fields can be added using PdfStamper.addAnnotation(); I also assume that one of these text fields needs to be a link. OK, what's the problem? Why are you talking about adding an Anchor? Do you mean you want to add a button, so that the page specified in the text field is opened? That's possible. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
