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
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);