Re: [iText-questions] How to add annotation to existing document.

2010-10-13 Thread ashish
I think I found something I hope this works for me... PdfImportedPage page = copy.getImportedPage(reader, 1); PdfCopy.PageStamp ps = copy.createPageStamp(page); ps.addAnnotation(PdfAnnotation.createText(copy, new Rectangle(50, 180, 70, 200), "Hello", "No Thanks", true, "Comment")); PdfContent

[iText-questions] How to add annotation to existing document.

2010-10-13 Thread ashish
Hi, I am trying to add a annotation in an existing pdfbytearray and then sending it for download. Here is what I am doing try { ByteArrayOutputStream pdfOut = new ByteArrayOutputStream(); InputStream pdf = new ByteArrayInputStream(pdfBytes);