iText doesn't look at the list of fields to change the state, you'll have to do
it yourself. It can be done but it's not directly supported.
Paulo
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Paul Ryan
> Sent: Thursday, July 24, 2008 10:51 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Signing with iText gives
> invalid sig when "mark read-only Signed" event set
>
> Apologies if I wasn't clear. The signature fields in Acrobat
> 8 (and from Acrobat 6 on I think) allow an option to set a
> list of fields ("all", "include", "exclude") to mark as read
> only when the signature field is signed. Basically, it's a
> trigger to do something after signing the field. For
> example, when the employee fills in their "leave" section of
> the form and signs it, the nominated "fill-in" fields can be
> locked to prevent further changes by the next recipient of
> the form (i.e. the supervisor).
>
>
>
> By the way, even if I make the signature field read only,
> iText will still sign it perfectly fine, but that's not what
> I'm asking here.
>
>
>
> Paul.
>
>
> ----- Original Message ----
> From: Paulo Soares <[EMAIL PROTECTED]>
> To: Post all your questions about iText here
> <[email protected]>
> Sent: Thursday, 24 July, 2008 11:21:25 PM
> Subject: Re: [iText-questions] Signing with iText gives
> invalid sig when "mark read-only Signed" event set
>
>
> How can you sign a field if you've marked it as read-only?
>
> Paulo
>
>
> ________________________________
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Paul and Jenny Ryan
> Sent: Thursday, July 24, 2008 2:34 AM
> To: [email protected]
> Subject: [iText-questions] Signing with iText gives
> invalid sig when "mark read-only Signed" event set
>
>
> Hi,
>
> We're investigating usage of Acrobat Professional 8.0
> to design a "Staff Leave" form with multiple signature fields
> (employee, supervisor and a certifying signature). The
> following high-level steps have been followed in order to
> demonstrate the problem I'm encountering:
>
> Within Acrobat Professional:
> 1. Create form template. In the properties of the
> "employee signature" field, I click on the "Signed" tab and
> set "Mark as read-only" to a list of specified fillable fields.
> 2. Enable usage rights so that users can save their
> filled in forms to disk.
> 3. Add non-visible certify signature allowing form fill-in.
>
> Using Adobe Reader:
> 4. Open the form template, fill in the fields and save to disk
>
> Using iText:
> 5. Sign the "employee signature" field
>
> Observations:
> - The above steps cause Adobe Reader to cry about
> "Signature is INVALID; The document has been altered or
> corrupted since the signature was applied" on the "employee
> signature" field.
> - If I use iText to verify the signed form, it's fine.
> - If I don't set the "Signed" event (field selection)
> property on the "employee signature" field at step 1 above,
> the signature will be perfectly valid at step 5 above via
> Adobe Reader.
> - If I use Adobe Reader to actually sign the "employee
> signature" field at step 5 with the "Signed" event set, it
> shows the signature is valid and locks (read only) the fields
> specified.
>
> I was hoping to utilise the field list from the
> "Signed" event tab to programmatically loop over and set to
> read only if iText didn't already honour these signature
> properties. It's of no use if the signature appears invalid
> though via Adobe Reader though.
>
> Regards,
> Paul
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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