Again please no personal mail post and *no* I'm not able to answer your
question since I've never asked one concerning signing XFA forms.

I'm also forwarding your thread to the mailing list, so it might get
answered.

2009/11/10 Gauravk Tyagi <gauravk.ty...@tcs.com>

>
> hi,
>
> i get you but can u provide me the solution for this as it is getting too
> much frustating.
>
> thanks and regards,
> Gaurav Kumar Tyagi
> Asst. System Engineer Trainee
> Tata Consultancy Services
> 154, B Block A,
> Sector 63, Phase III, Noida Distt
> Gautam Buddha Nagar
> Noida - 201301,Up
> India
> Cell:- 09990013398
> Mailto: gauravk.ty...@tcs.com
> Website: http://www.tcs.com
> ____________________________________________
> Experience certainty.        IT Services
>                        Business Solutions
>                        Outsourcing
> ____________________________________________
>
>
>  From: Iliadis Yannis <ilyan...@gmail.com> To:
> Gauravk Tyagi <gauravk.ty...@tcs.com>
> Date: 11/10/2009 04:24 PM Subject: Re: reg: the addition of blank
> signature over an adobe XFA         form,please help
> ------------------------------
>
>
>
> Please do not post questions personally, use the mailing list instead.
>
> 2009/11/10 Gauravk Tyagi <*gauravk.ty...@tcs.com* <gauravk.ty...@tcs.com>>
>
> hi,
>
> i am facing the same problem as you posted on a forum that the signature is
> not getting reflected over the existing  eForm,have u got the answer or any
> hint towards the solution .when i try to add a blank signature over a form
> not having any xsd the code works well and signature is imprinted.but when i
> use the same code for xfa form(having xsd binding) designed in adobe
> designer, no signature field got visible.
>
> the code i used was
> *
> import* java.io.File; *
> import* java.io.FileInputStream; *
> import* java.io.FileOutputStream; *
> import* java.security.KeyStore; *
> import* java.security.PrivateKey; *
> import* java.security.cert.Certificate; *
> import* com.lowagie.text.Rectangle; *
> import* com.lowagie.*text*.pdf.AcroFields; *
> import* com.lowagie.text.pdf.PRAcroForm; *
> import* com.lowagie.text.pdf.PdfAcroForm; *
> import* com.lowagie.text.pdf.PdfAnnotation; *
> import* com.lowagie.text.pdf.PdfContentByte; *
> import* com.lowagie.text.pdf.PdfFormField; *
> import* com.lowagie.text.pdf.PdfName; *
> import* com.lowagie.text.pdf.PdfReader; *
> import* com.lowagie.text.pdf.PdfSignatureAppearance; *
> import* com.lowagie.text.pdf.PdfStamper; *
> import* com.lowagie.text.pdf.PdfString; *
> import* com.lowagie.text.pdf.PdfWriter;
> *
> public* *class* DigitalSignatureOnPdf {
>
>         /**
>          * *...@param* args
>          */
>         *public* *static* *void* main(String[] args)
>         {
>                 *try*
>                 {
>                 String strInputFileName =
> "C:\\sign\\1049-Form1BSigned9.pdf";
>                 //String strInputFileName ="C:\\sign\\1045-Form15.pdf";
>                 String strOutPutFileName =
> "C:\\sign\\1049-Form1BSigned9new.pdf";
>                 PdfReader reader = *new* PdfReader(strInputFileName);
>
>                 FileOutputStream fout = *new* FileOutputStream(
> "C:\\sign\\1049-Form1BSigned9new.pdf");
>                 PdfStamper stp = *new* PdfStamper(reader, fout);
>                 PdfFormField sig = PdfFormField.*createSignature*
> (stp.getWriter());
>                 System.*out*.println(sig.isNull());
>                 sig.setWidget(*new* Rectangle(100, 100, 200, 200), *null*
> );
>                 stp.addSignature("fdsf", 1, 100, 200, 200, 232);
>
>                 sig.*createSignature*(stp.getWriter());
>
>                 *int* place = sig.getPlaceInPage();
>                 System.*out*.println(place);
>                 sig.setFieldFlags(PdfAnnotation.*FLAGS_PRINT*);
>                 sig.put(PdfName.*DA*, *new* PdfString("/Helv 0 Tf 0 g"));
>                 sig.setFieldName("Signature1");
>                 sig.setPage(1);
>                 stp.addAnnotation(sig, 1);
>                 stp.setFormFlattening(*true*);
>
>                 stp.close();
>                 }
>                 *catch*(Exception ex)
>                 {
>                         ex.printStackTrace();
>                 }
>         }
>
> }
>
> if you have solution please tell me as it is too urgent .........
>
> Thanks and regards,
> Gaurav Kumar Tyagi
> Asst. System Engineer Trainee
> Tata Consultancy Services
> 154, B Block A,
> Sector 63, Phase III, Noida Distt
> Gautam Buddha Nagar
> Noida - 201301,Up
> India
> Cell:- 09990013398
> Mailto: *gauravk.ty...@tcs.com* <gauravk.ty...@tcs.com>
> Website: *http://www.tcs.com* <http://www.tcs.com/>
> ____________________________________________
> Experience certainty.        IT Services
>                        Business Solutions
>                        Outsourcing
> ____________________________________________
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>
>
>
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/

Reply via email to