jutrec | Posts: 4

Extraction and SignatureDate

0 votes
Hi, I'm trying to have my signature field and the date extracted from my PDF document. It works wonders for the signature field and for the textfield (not in the code below) but it does not work for the SignatureDate Field
 
DocumentPackage package = PackageBuilder.NewPackageNamed("Field extraction example")
              .WithSigner(SignerBuilder.NewSignerWithEmail(myemail)
                .WithFirstName(myFirstName)
                .WithLastName(myLastName))
              .WithDocument(DocumentBuilder.NewDocumentNamed("My Document")
                .FromFile(myFilePath)
                .EnableExtraction()
                .WithSignature(SignatureBuilder.SignatureFor(myemail)
                  .WithName("SignProp3_3")
                  .WithPositionExtracted()
                  .WithField(FieldBuilder.SignatureDate()
                    .WithName("Date3_3")
                    .WithPositionExtracted())))
              .Build();

            PackageId id = Client.Instance.CreatePackage(package);

            Client.Instance.SendPackage(id);
The date works fine if i try to position it OnPage().AtPosition() but it does not work on extracted field. I have double checked my PDF field name. What am I missing? Thank you in advance.

Approved Answer
harishaidary | Posts: 1812

Reply to: Extraction and SignatureDate

1 votes
Update: I just ran another test. You can actually extract the position of signature dates using esignlive's naming convention for pdf form fields. For example, if you name your fields in your pdf [Signer1.Capture1] and [Signer1.Capture1.label1.Date] and change your code to:
DocumentPackage package = PackageBuilder.NewPackageNamed("Field extraction example")
              .WithSigner(SignerBuilder.NewSignerWithEmail("[email protected]")
                .WithFirstName("John")
                .WithLastName("Smith")
                .WithCustomId("Signer1"))
              .WithDocument(DocumentBuilder.NewDocumentNamed("My Document")
                .FromFile(@"C:/Users/hhaidary/Desktop/test.pdf")
                .EnableExtraction())
              .Build();

PackageId id = client.CreatePackage(package);
The positions and sizes of the signatures and fields in the PDF file will be automatically retained in esignlive. Right now, it doesn't seem to be working using .WithPositionExtracted() method. You can find more information about document extraction and the naming convention here: http://docs.e-signlive.com/mc/content/c_esignlive_integrator_s_guide/sdk/c_managing_documents/extraction.htm

harishaidary | Posts: 1812

Reply to: Extraction and SignatureDate

1 votes
Hi Jules, You are correct. Currently, position extraction isn't working for the following fields: full name, signature date, company, and title on esignlive v11. This bug has already been reported and our R&D team is actively working on a fix. As a temporary workaround, you can use x-y coordinates to position the fields or you could use templates.

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off