mkl wrote: > Stephen, > > > Stephen Byrne wrote: >> mkl wrote: >>> Indeed Acrobat and Reader have more requirements concerning the validity >>> of >>> signatures than the mere matching of the hash value. They also allow only >>> a >>> very limitted set of additions to the file after signing. These >>> requirements >>> have become stricter and stricter for quite some time. And they may >>> depend >>> on information in the early stage of the PDF. >> The source PDF, output PDFs, and source code are at >> http://sbyrne.net/itext/multiplesig/ >> > > Some remarks at first glance (I'll look into it more deeply later): > > You use certification levels to allow even less changes than would be > allowed otherwise, CERTIFIED_FORM_FILLING at first and > CERTIFIED_NO_CHANGES_ALLOWED lateron. Maybe iText while merely trying to > sign the second signature field does something Acrobat products consider > more than form filling. > > Both of your signature values contain a /DocMDP entry (as you set > certification levels for both signatures). This unfortunately is forbidden, > ISO 32000-1:2008 states in 12.8.2.2.1: > > The DocMDP transform method shall be used to detect modifications relative > to a signature field that is signed by the author of a document (the person > applying the first signature). A document can contain only one signature > field that contains a DocMDP transform method; it shall be the first signed > field in the document. It enables the author to specify what changes shall > be permitted to be made the document and what changes invalidate the > author’s signature. > <<< > > Thus, only the first signature may have the certification level set. > > Regards, Michael.
You are correct, after removing the psa2.setCertificationLevel line, both signatures show as valid. Thank you. -- Stephen Byrne [email protected] (585) 286-5817 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/
