ALL of the PDF, except the signature itself, is signed.

Leonard


On 10/5/09 4:59 AM, "Tamas" <info...@gmail.com> wrote:

> 
> Dear IText Experts,
> 
> What part of the pdf document is signned when I use the
> PdfStamper.CreateSignature and the PdfSignatureAppearance.SetCrypto method?
> 
> My code is the folowing:
> PdfStamper st = PdfStamper.CreateSignature(reader, new
> FileStream(this.outputPDF, FileMode.Create, FileAccess.Write), '\0', null,
> true);
>             st.MoreInfo = this.metadata.getMetaData();
>             st.XmpMetadata = this.metadata.getStreamedMetaData();
>             PdfSignatureAppearance sap = st.SignatureAppearance;
>             
>             sap.SetCrypto(this.myCert.Akp, this.myCert.Chain, null,
> PdfSignatureAppearance.WINCER_SIGNED);
> ...            
>             st.Close();
> 
> After I signed an existing pdf document I modified some of the bytes
> randomly and several times the adobe reader 9 informed me about that all of
> the signatures are valid. How did it happend? I looked over the pdf 1.4
> documentation and I found that the whole pdf and only a part of the pdf can
> be signed as well. When I use the PdfStamper.CreateSignature which part of
> the pdf doc will be signed?
> 
> Thanks
> 
> Tamas

-- 
Leonard Rosenthol
PDF Standards Architect
Adobe Systems



------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to