Hi Michael, I have tried to add the annotation with appearance but not succeeded. Below is my addannotation method, any idea?
------------------------------------------------------------------ PdfContentByte canvas = pdfStamper.GetUnderContent(1); Rectangle annotRect = new Rectangle(0, 560, 260, 580); float[] quad = { annotRect.Left, annotRect.Bottom, annotRect.Right, annotRect.Bottom, annotRect.Left, annotRect.Top, annotRect.Right, annotRect.Top }; PdfAppearance highlight_ap = canvas.CreateAppearance(annotRect.Width, annotRect.Height); PdfAnnotation comment = PdfAnnotation.CreateMarkup(pdfStamper.Writer, annotRect, null, PdfAnnotation.MARKUP_HIGHLIGHT, quad); comment.Color = BaseColor.YELLOW; comment.Rotate = pathToBasePdf.GetPageRotation(1); comment.PlaceInPage = 1; comment.Flags = iTextSharp.text.pdf.PdfAnnotation.FLAGS_PRINT; comment.Flags = iTextSharp.text.pdf.PdfAnnotation.FLAGS_READONLY; comment.Title = "hello"; PdfDate pdfdate = new PdfDate(); comment.Put(PdfName.CREATIONDATE, pdfdate); comment.Put(PdfName.M, pdfdate); comment.SetAppearance(PdfName.N, highlight_ap); pdfStamper.AddAnnotation(comment, 1); -- View this message in context: http://itext-general.2136553.n4.nabble.com/Itextsharp-annotations-modified-after-digital-signing-tp4659401p4659419.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. 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