hichiu, hichiu wrote > I have tried to add the annotation with appearance but not succeeded. > Below is my addannotation method, any idea?
I played around a bit (based on your code but in Java), and it looks like in addition to creating your own appearance you also have to a) remove the /Contents entry from the annotation: comment.remove(PdfName.CONTENTS); b) and add an /NM entry to the annotation, e.g.: comment.put(PdfName.NM, new PdfString("5e1f2eae-91ef-45bd-bc82-8e30be10a7bd")); Probably you need not do a) if you create the appearance just like Adobe Reader would do it (maybe you merely need to follow the recipe from section 12.7.3.3 "Variable Text" of the PDF specification ISO 32000-1) Item b) is a bit surprising, though, as this annotation name entry is marked as optional in the specification, cf. ibidem table 164 "Entries common to all annotation dictionaries". Regards, Michael -- View this message in context: http://itext-general.2136553.n4.nabble.com/Itextsharp-annotations-modified-after-digital-signing-tp4659401p4659437.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&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