Re: [iText-questions] JavaScript action after a signature field is signed

2009-09-04 Thread webpointz
Using this method to add a signature, how would you go about setting the signature field to READ ONLY so that Adobe Reader v9.1 doesn't show the "Lock document after signing" checkbox? 1T3XT info wrote: > > This is completely wrong: >> PdfAcroForm acroForm = stamp.getWriter().getA

Re: [iText-questions] JavaScript action after a signature field is signed

2009-02-27 Thread mingxun
Thanks. That works. Ming 1T3XT info wrote: > > This is completely wrong: >> PdfAcroForm acroForm = stamp.getWriter().getAcroForm(); >> PdfFormField sigField = acroForm.addSignature("test", 300, >> 100, >> 400, 200); > > It causes: >> java.lang.RuntimeException: Unsupport

Re: [iText-questions] JavaScript action after a signature field is signed

2009-02-25 Thread 1T3XT info
This is completely wrong: > PdfAcroForm acroForm = stamp.getWriter().getAcroForm(); > PdfFormField sigField = acroForm.addSignature("test", 300, 100, > 400, 200); It causes: > java.lang.RuntimeException: Unsupported in this context. Use > PdfStamper.addAnnotation() >

Re: [iText-questions] JavaScript action after a signature field is signed

2009-02-25 Thread mingxun
I am trying to add a signature field and then add some javascript associate this field to an existing pdf document. The code is something like this: PdfStamper stamp = new PdfStamper(reader, new FileOutputStream("registered.pdf")); ByteArrayOutputStream baos =

Re: [iText-questions] JavaScript action after a signature field is signed

2009-02-24 Thread Leonard Rosenthol
Details are in the PDF Reference/ISO 32000. Leonard -Original Message- From: mingxun [mailto:ming.hu...@eds.com] Sent: Tuesday, February 24, 2009 3:19 PM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] JavaScript action after a signature field is signed Is

Re: [iText-questions] JavaScript action after a signature field is signed

2009-02-24 Thread mingxun
Is there event for signature field is signed? Or is there PDFName for signature is signed? so that I can associate javascript with that event? Thanks for your help Ming Xun Huang 1T3XT info wrote: > > Huang, Ming wrote: >> I want to use iText to add some dynamic JavaScript which will be

Re: [iText-questions] JavaScript action after a signature field is signed

2009-02-24 Thread 1T3XT info
Huang, Ming wrote: > I want to use iText to add some dynamic JavaScript which will be > executed after a signature is signed. I can add the static JavaScript > using Acrobat Profession. Can iText API do that? iText can add JavaScript; see for instance: http://1t3xt.info/examples/browse/?