The annotation I tried to use is a TEXT annotation, (not an "External Link",

not an "External PDF file", not a "Named Action", nor an "Application").

I occurs to me the only way to create a TEXT annotaion is like this:

Annotation myHumbleTextAnnotation = new Annotation("Title", "Some lenghy
string here....");

And it seems there is no way to put the "myHumbleTextAnnotation" at an
absolute location
on a PdfContentByte object.

Please advice,

Thanks a lot,

Don


-----Original Message-----
From: Chen, Donald 
Sent: Thursday, March 14, 2002 9:32 AM
To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
Subject: [iText-questions] RE: How to put an Annotation on a PdfConten
tByte and in a PdfPTa b le?


Bruno,  

Is the usage of PdfContentByte.add(Annotation a) like this:

PdfContentByte.add(Annotation a, float x, float y) // x, y is the absolute
position the annotation intends to be located.

Thanks a lot,

Don

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 5:57 AM
To: [EMAIL PROTECTED]
Cc: Chen, Donald
Subject: Re: How to put an Annotation on a PdfConten tByte and in a
PdfPTab le?


Paulo Soares writes:

> 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.

Oops, I have just put a jar compiled from my current code
in http://www.lowagie.com/iText/downloads/updates/ 

It contains a PdfContentByte.add(Annotation a) method.
I didn't test it. Maybe Don can try it out as a temporary
solution... (The source is in CVS.) 

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

Reply via email to