yuchen9760

Expect Handwritten Signature without Default Fullname Signature

0 votes
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("[email protected]")
                            .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);

Approved Answer

Reply to: Expect Handwritten Signature without Default Fullname Signature

0 votes
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 Evangelism and Partner Integrations Developer


Attachments

Reply to: Expect Handwritten Signature without Default Fullname Signature

0 votes
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 Evangelism and Partner Integrations Developer


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