Salvo,
Salvo Rapisarda wrote: > [...] A postback of page is made with Javascript and the output of > signature was encapsuled with iTextSharp inside the PDF at server-side. > All it's done without problem, but when I open signed version of PDF with > Acrobat Reader the sign is not valid with reason: the document was > modified after the signing. > > So the question is: I have made some mistake in my code or it's not > possible to do a "asynchronous" signature process? In principle it is possible, but you have to take care. On the one hand, you must be sure --- as Andreas already mentioned --- to calculate the hash for the range stream returned by PdfSignatureAppearance.getRangeStream(), not simply the whole PDF file. On the other hand, you should be aware that when you start creating a signature at different times, the range streams will be different, even if you use the same explicite input data. You have to inject the returned signature container in the very PdfStamper instance whose PdfSignatureAppearance's RangeStream you used. Regards, Michael. -- View this message in context: http://old.nabble.com/Java-applet-for-signing-PDF-documents-tp27888343p27888588.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ 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.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/
