annotation = PdfAnnotation.createText(writer,
                                                                        new 
Rectangle(llx, lly, llx+20, lly+20),
                                                                        
user.getDisplayableName(),
StringUtils.deleteHTMLTags(map.get(key).getDescription()), false,
"Comment");
                                                 
                                                
                                        
                                                 reply = 
PdfAnnotation.createText(writer,new Rectangle(20,20, 40, 40),
                                                        
user.getDisplayableName(), "Reply", false, "Comment");
//HERE I AM TRYING TO LINK REPLY TO ANNOTATION
                                                 annotation.put(new 
PdfName("IRT"),reply);
//ps = PAGE STAMP
                                                 ps.addAnnotation(annotation);



this is not working... 
I can see the IRT entry in annotation getting populated with reply. But on
pdf document reply is not seen when i open the annotation.
Can anyone please rectify my mistake or just tell me if i am doing right?

Thanks,
Ashish
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/dynamically-adding-annotations-and-its-replies-tp2999674p2999751.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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

Reply via email to