Re: [iText-questions] Itextsharp annotations modified after digital signing

2013-11-14 Thread hichiu
Thankss Michael, my careless mistakes... Everything solved now!! GREATGREAT -- View this message in context: http://itext-general.2136553.n4.nabble.com/Itextsharp-annotations-modified-after-digital-signing-tp4659401p4659455.html Sent from the iText - General mailing list archive at Nabble.c

Re: [iText-questions] Itextsharp annotations modified after digital signing

2013-11-14 Thread hichiu
Thanks Michael, I didnt think of adding text to the appearance. It works really great for my first signing without annotation modified warning. But here comes another problem discovered... when i made the second signing and annotation by the same code, the annotation modified warning appear again

Re: [iText-questions] Itextsharp annotations modified after digital signing

2013-11-13 Thread hichiu
Thanks Michael, it works with comment.SetAppearance(PdfName.N, highlight_ap); comment.Put(PdfName.M, pdfdate); comment.Put(PdfName.NM, new PdfString("5e1f2eae-91ef-45bd-bc82-8e30be10a7bd")); comment.Remove(PdfName.CONTENTS); ... but the free

Re: [iText-questions] Itextsharp annotations modified after digital signing

2013-11-13 Thread hichiu
Michael, Even I did both (a) and (b), its failed... Attached is my code in C# and the file before and after signing sign_sha256.txt blank_2.pdf

Re: [iText-questions] Itextsharp annotations modified after digital signing

2013-11-12 Thread hichiu
anyone can help? pls -- View this message in context: http://itext-general.2136553.n4.nabble.com/Itextsharp-annotations-modified-after-digital-signing-tp4659401p4659435.html Sent from the iText - General mailing list archive at Nabble.com. --

Re: [iText-questions] Itextsharp annotations modified after digital signing

2013-11-08 Thread hichiu
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

Re: [iText-questions] Itextsharp annotations modified after digital signing

2013-11-05 Thread hichiu
blank_2.pdf here is the pdf with error when "validate all signatures" in adobe reader. -- View this message in context: http://itext-general.2136553.n4.nabble.com/Itextsharp-annotations-modified-after-digital-signing-tp4