David,

david wrote
> Here the documents.

I just had the time to inspect your documents.

I was not sure what you meant by "a pdf with a field mark as read only after
signing". In your document FormulaireWithRO.pdf I now see that that means
that the empty signature field "Signature1" has a /Lock entry of type
/SigFieldLock and action /All.

According to the specification (ISO 32000-1:2008) this means that upon
signing in that signature field all fields in the document should be locked
(Table 233) or shall be locked (Table 232).

Unfortunately I cannot find any explanation there what locking a field
means. A priori it could either mean that any PDF tool working with a PDF
containing a signed signature field with such an entry should consider all
document fields read only, or it could mean that any PDF tool signing an
empty signature field containg such a /Lock entry shall explicitly mark all
form fields read-only in the process.

Adobe Acrobat and Reader seem to follow the latter interpretation; when
signing in Signature1 they mark the field "Texte3" read-only by adding a
"/Ff 1" entry; when verifying they expect such a marker.

iText on the other hand does not add a "/Ff 1" mark to that field (or does
anything at all along the lines of the latter interpretation). Thus, Adobe
Acrobat and Reader consider the signature applied by iText invalid as the
form fields in the document don't match their expectations.

I'm not sure whether this lack of clarity in the specification has been
fixed somewhere (or I even overlooked some clarification in the document
itself) --- and, therefore, iText probably offers only limited support for
signing empty signature fields --- or not. The mix of optional ("should")
and mandatory ("shall") requirement declaration does not help either.

Essentially you currently should not expect signature fields with lock
entries to work in this mixed environment.

Regards,   Michael

--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/signature-with-readonly-mark-field-tp4534988p4564110.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to