Account


Earned badges

Achievement: Latest Unlocked

Topic Started

Topics

Now sure if this has been asked before, but we need to retrieve which signer was last sent the signature email by OneSpan, including the signing order of this signer. 

Thanks!

Is there a Java SDK code example to do OAuth 2.0 for creating an EslClient?

Right now I'm using clientAppId and clientAppSecret.

I know how to retrieve the evidence pdf with the below code:

We put below in our application pom.xml:

Replies Created

Reply to: Custom Field - passing value to Template

0 votes

Hi mwilliams

I'm new to OSS. This is exactly what I want - "...create your documents as PDF forms, you could automatically extract fields from the PDF and inject text where you want it at package creation or document upload (if adding to an existing package) time". But I don't know how to place the fields "full_name" and "amount" in the PDF using below code. I tried curly braces {full_name} and square brackets [full_name], but neither worked. Could you advise? Thanks!

            .withDocument(DocumentBuilder.newDocumentWithName("sampleAgreement")
                    .fromFile("sources/TestTemplate.pdf")
                    .enableExtraction()
                    .withInjectedField(FieldBuilder.textField()
                            .withName("amount")
                            .withValue("50000"))
                    .withInjectedField(FieldBuilder.textField()
                            .withName("full_name")
                            .withValue("John Doe"))

 

J.P.


Reply to: Custom Field - passing value to Template

0 votes

Thank you Duo for your quick answer! I used your PDF file in my test code and it worked too.

Unfortunately I don't have paid Adobe Acrobat to create/edit PDF files? We always create the template in HTML with placeholder fields, then covert it to a PDF file (programmatically, or manually load HTML to Word and then save as PDF). I tried to use the HTML <input> tag for the fields, and again it's not recognized by OSS. Do you know if there is HTML equivalent to the PDF form fields, or in other words how the PDF form field names can be defined in source HTML?

My simple HTML source for PDF looks like blow:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<form>
    <p>Name: <input name="full_name"></p>
    <p>Amount: <input name="amount"></p>
</form>
</body>
</html>


Attachments

Reply to: Custom Field - passing value to Template

0 votes

Thanks Duo Liang! In my case, We'll populate our own custom fields (they are read-only anyway) before forming the PDF file and just do the signer related fields on the PDF.


Reply to: Signer/Role Signing status

0 votes

Hi Duo,

Could you show some Java code for getting the "currently signed" signer when A) there are multiple signers and B) the document has not been  completely signed and C) the package is still "In Progress"?

Thanks!

JP


Subscriptions

Topics Replies Freshness Views Users

Now sure if this has been asked before, but we need to retrieve which signer was last sent the signature email by OneSpan, including the signing order of this signer. 

Thanks!

6 1 year 5 months ago 54
Profile picture for user Duo_Liang

Is there a Java SDK code example to do OAuth 2.0 for creating an EslClient?

Right now I'm using clientAppId and clientAppSecret.

2 1 year 8 months ago 47
Profile picture for user Duo_Liang

I know how to retrieve the evidence pdf with the below code:

2 1 year 9 months ago 29
Profile picture for user Duo_Liang

We put below in our application pom.xml:

2 1 year 10 months ago 35
Profile picture for user Duo_Liang
4 1 year 10 months ago 88
Profile picture for user Duo_Liang

Code Share

This user has not submitted any code shares.

Subscriptions Release Notes

This user is not subscribed to any release notes.