The Contents aren't signed by the PDF signature - they can't be (otherwise you 
get infinite recursion).  However, some parts of the Contents (which is a 
PKCS#7 package) _MAY_ be a signed attribute and thus you could get failure from 
that side.

Any other change to the PDF will cause it to fail validation.

Leonard

-----Original Message-----
From: Tamas [mailto:info...@gmail.com] 
Sent: Tuesday, October 06, 2009 6:18 AM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] What Part of the PDF document is signed by 
PdfStamper



Additionally... and what happens, when I modify the signature itself. Please
see the attached zip code example and the screen shot about that where the
modification was made in the pdf, and it was still valid in IText. (In Adobe
Reader 9.0 the signature had the right state -> "At least one signature is
invalid") I do each validation from code with IText and I'd like to be sure
the the document is not modified even if the signature is the only one
modified document part.

Bests,

Tamas


Tamas wrote:
> 
> Thank you Leonard!
> 
> You mean that all of the previous signatures are signed with the last one?
> 
> Bests
> 
> Tamas
> 
> 
> 
> 
> Leonard Rosenthol-3 wrote:
>> 
>> 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/
>> 
>> 
> 
> 
http://www.nabble.com/file/p25768503/VerifySignature.zip VerifySignature.zip 
http://www.nabble.com/file/p25768503/WhereItWasRepleacedInMyPdf.JPG
WhereItWasRepleacedInMyPdf.JPG 
-- 
View this message in context: 
http://www.nabble.com/What-Part-of-the-PDF-document-is-signed-by-PdfStamper-tp25749465p25768503.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
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/

------------------------------------------------------------------------------
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