This topic contains 2 replies, has 2 voices, and was last updated by  Duo_Liang 1 month ago.

  • Author
    Posts
  • Participant
    yuchen9760
    Newbie
    Member since: 28.11.2018
    Number of posts: 3

    We are using

    SignatureBuilder.captureFor()

    to ask for a handwritten signature, but after the expected user signs, not only the handwritten signature drawn shows up, but also the full name appears, it seems the full name signature comes upon anyway by default.

    Is it possible to show the handwritten signature only?

    This is the sample code:

    final SignerBuilder signer = SignerBuilder.newSignerWithEmail(email)
                        .withFirstName("sf9719")
                        .withLastName("Doe")
                        .withCustomId("Signer");
                final PackageBuilder packageToBuild = PackageBuilder.newPackageNamed("package");
                final DocumentBuilder document = DocumentBuilder.newDocumentWithName("pdf")
                        .fromStream(new ByteArrayInputStream(pdf), DocumentType.PDF)
                        .withSignature(SignatureBuilder.captureFor("doe@yahoo.com")
                                .withPositionAnchor(TextAnchorBuilder.newTextAnchor(esignSignatureAnchor)
                                        .atPosition(TextAnchorPosition.TOPRIGHT)
                                        .withSize(100, 100)
                                        .withOffset(10, 10)
                                )
                        );
                final DocumentPackage documentPackage = packageToBuild.withSigner(signer).withDocument(document).build();
                eslClient = new EslClient(esignAPIKey, esignAPIURL);
                packageId = eslClient.createPackageOneStep(documentPackage);
                eslClient.sendPackage(packageId);
    
    • This topic was modified 1 month ago by  yuchen9760.
    Attachments:
    You must be logged in to view attached files.
    Keymaster
    Duo_Liang
    Guru
    Member since: 14.06.2018
    Number of posts: 608
    Approved answer

    Score

    0

    Hi yuchen,

    “Hiding capture text” is a package level setting. You can enable this by following two lines:

    final DocumentPackageSettingsBuilder setting = DocumentPackageSettingsBuilder.newDocumentPackageSettings().withoutCaptureText();
    packageToBuild.withSettings(setting);

    And the attachment is the effect of the setting.

    Hope this could help!
    Duo


    Duo Liang
    OneSpan Junior Technical Evangelist
    Attachments:
    You must be logged in to view attached files.
    Keymaster
    Duo_Liang
    Guru
    Member since: 14.06.2018
    Number of posts: 608

    Score

    0

    BTW, the blue water mark can also be removed, it’s also a package level setting:

    final DocumentPackageSettingsBuilder setting = DocumentPackageSettingsBuilder.newDocumentPackageSettings().withoutCaptureText().withoutWatermark();
    packageToBuild.withSettings(setting);

    Duo


    Duo Liang
    OneSpan Junior Technical Evangelist
    • This reply was modified 1 month ago by  Duo_Liang.

You must be logged in to reply to this topic.