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] GetCertificateChain(alias) is null

2013-11-13 Thread aar
We are using a SSL certificate of our site issued by Thawte in this case. It is a chained certificate with 3 certs in it. I cannot provide the certificate because it contains a private key. If we cannot use SSL certificate, Can I know what kind of certificates itextsharp supports. -- View this

Re: [iText-questions] GetCertificateChain(alias) is null

2013-11-13 Thread aar
I am using the code below string alias = null; PKCS12Store pk12; // First we'll read the certificate file pk12 = new PKCS12Store(new FileStream(this.Path, FileMode.Open, FileAccess.Read), this._password.ToCharArray()); // Then Iterate

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

2013-11-13 Thread mkl
hichiu wrote > 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 >

[iText-questions] XMLWorker and tag

2013-11-13 Thread rmatyas
Hi, I use XMLWorker to parse HTML code with tag . If in this tag is only text, it works fine. But if there is other formating inside tag , all new lines from text are lost. For example: Title First line of text. Second line. Third line In PDF looks like: TitleFirst Line of text.Second

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

[iText-questions] [SPAM] Re: GetCertificateChain(alias) is null

2013-11-13 Thread mkl
aar, aar wrote > I am using itextsharp. When I am using self signed certificate, it is > working fine. But when I use a certificate signed by other person. The > pk12.getCertificateChain(alias) method returns null. Unless this proves to be a known problem (which does not seem to be the case as no

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

2013-11-13 Thread mkl
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 /Content