cudley | Posts: 6

Issue Changing Signature Type After Package Created

0 votes
I'm experiencing an issue when I try to update a signature type from click-to-sign to capture, after a transaction is created. We have tried the modifySignature method using the Java SDK and it seems like this approach does not work. FYI, we are using position extraction for the initial field creation. We have tried the below steps :
  1. Created and sent a package with position extraction and click to sign signature
  2. Changed the package to drafts status
  3. Modifed the existing signature to capture signature
The result: The document changes to a disclosure This appears to be a bug. Is this known? If so, are there any known workarounds? Thanks!

Approved Answer
ichbani | Posts: 3

Reply to: Issue Changing Signature Type After Package Created

0 votes
The following will allow you to change the the signature type after a transaction is already created:
DocumentPackage docpackage = eslClient.getPackage(packageId);

        Collection signatures = docpackage.getDocument("sampleAgreement").getSignatures();
        Signature oldSignature = null;
        for (Signature s:signatures) {
            if ("Signature1".equals(s.getName())) {
                oldSignature = s;
                break;
            }
        }
        Signature signature = SignatureBuilder.captureFor("[email protected]")
                .withName("Signature1")
                .atPosition(oldSignature.getX(),oldSignature.getY())
                .withSize(oldSignature.getWidth(),oldSignature.getHeight())
                .build();

        eslClient.getApprovalService().modifySignature(docpackage, "id", signature);

cudley | Posts: 6

Reply to: Issue Changing Signature Type After Package Created

0 votes
Thanks, ichbani. This worked for me.

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