I would wait a little on this. Work is being made in form fields that will impact annotations. The main benefit is that more annotations types will be supported with more options, such as appearance streams and trigger actions. For your case the better option would be a trigger action when the the mouse enters the cell that would unhide a popup with the message.
Best Regards, Paulo Soares > -----Original Message----- > From: Chen, Donald [SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, March 13, 2002 16:28 > To: '[EMAIL PROTECTED]' > Cc: [EMAIL PROTECTED] > Subject: [iText-questions] RE: How to put an Annotation on a > PdfContentByte and in a PdfPTab le? > > Thank you, Bruno. > > > 1. add an annotation to PdfContentByte. > > Why do you need this? Can't you add an annotation at > > an absolute position. Is there some particular reason > > why you need to add it to a PdfContentByte? > > > > Answer: Yap, I would like to add an annotation at an absolute position. > > The reason > > why I intend to add an annotation to a PdfContentByte is: I pass a > PdfWriter > > ( from which I > > get a PdfContentByte ) from my master object to my worker objects. It > seems > > to me it is > > impossible to pass a PdfDocument object around. > > OK, since you get your PdfContentByte from a PdfWriter, > we should be able to add an annotation to the annotations-PdfArray. > If Paulo doesn't answer this question, I will have another look > at it tomorrow. > > Don: so far, Paulo has not answer the question yet. > ( how to add an annotation to the annotations-PdfArray, and then add the > PdfArray to a absolute postion on a PdfContentByte ). > > Thanks again, > > Don > > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 13, 2002 11:24 AM > To: Chen, Donald > Cc: [EMAIL PROTECTED] > Subject: Re: How to put an Annotation on a PdfContentByte and in a > PdfPTab le? > > > Chen, Donald writes: > > > Thanks a lot, > > > > Here are the answers to the two question: > > > > > > Your question is twofold: > > 1. add an annotation to PdfContentByte. > > Why do you need this? Can't you add an annotation at > > an absolute position. Is there some particular reason > > why you need to add it to a PdfContentByte? > > > > Answer: Yap, I would like to add an annotation at an absolute position. > > The reason > > why I intend to add an annotation to a PdfContentByte is: I pass a > PdfWriter > > ( from which I > > get a PdfContentByte ) from my master object to my worker objects. It > seems > > to me it is > > impossible to pass a PdfDocument object around. > > OK, since you get your PdfContentByte from a PdfWriter, > we should be able to add an annotation to the annotations-PdfArray. > If Paulo doesn't answer this question, I will have another look > at it tomorrow. > > > 2. add an annotation to a PdfPTable. > > What effect do you want to get? Are you thinking of > > a clickable PdfPCell? > > Answer: Nop. I do not intend to create a clickable PdfPCell. There is > some > > information ( long > > strings ) I need to put into a PdfPCell. If I directly put those long > info > > into a PdfPCell, > > theywill ruin the layout of the PdfPCell, and they are not necessary > there > > for viewing/printing. > > I put there only in case that one want to see them. > > So, I thought an annotation might serve the purpose. > > Hey, that's a good idea, I never thought of this use of annotations. > > You could probably add the annotation at the right location using > a PdfPTableEvent. If you want to add it to a PdfPCell, we should first > have a solution for question 1 because PdfPCell paints its contents > to a PdfContentByte. > > I'll take a look at it tomorrow. > > kind regards, > Bruno > > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
