sap.setVisibleSignature(new Rectangle(100, 100, 200, 200), 1, “Electronic 
Signature”);
 
Paulo


________________________________

        From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Inma 
Marín López
        Sent: Wednesday, May 02, 2007 9:14 AM
        To: [email protected]
        Subject: [iText-questions] Signature name (FieldName) modification
        
        

        Hello!

         

         To get a PDF document signed using iText, I do the following:

         

                    PdfReader reader = new PdfReader(pdfToSign);

                    FileOutputStream fout = new 
FileOutputStream(pdfToSignSigned);

         

                    PdfStamper stp = PdfStamper.createSignature(reader, fout, 
'\0');

                    PdfSignatureAppearance sap = stp.getSignatureAppearance();

                    sap.setCrypto(key, chain, null, 
PdfSignatureAppearance.WINCER_SIGNED);

                    

                    sap.setSignDate(Calendar.getInstance());

                    sap.setReason("I am the author");

                    sap.setLocation("Anywhere");

         

                    System.out.println("Signature Name = " + 
sap.getFieldName()); //Get the signature name

         

                    //Comment the next line if we want an invisible signature

                    sap.setVisibleSignature(new Rectangle(100, 100, 200, 200), 
1, null);

         

                    stp.close();

         

         

        When I do “sap.getFieldName()” (System.out.println("Signature Name = " 
+ sap.getFieldName());), I obtain the chain “Signature1”, as the signature 
name, I suppose…. However, I would like the signature has a different name from 
“Signature1” (for example, “Electronic Signature”). Is it possible with iText?? 
How can I get this??

         

        Could anybody be so kind as to help me, please???

         

        Thank you very much in advance.

        Inma.



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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to