E-signatures with Java

A simple API for signing PDFs from your app. Set up an etch e-signature packet and use Java to send or embed the e-sign experience.

Embed or send e-signature requests

Simple, legally binding e-signatures. Generate or upload a PDF, define the signers, and send out an e-signature request all over API.


Java to signature

Use Java to set up an Etch e-signature packet. Then send the packet for signature over email or directly from your app.

public class PDFSignSimpleExample {
    private CreateEtchPacket getPacketVariables(String pdfTemplateEid, String signerName, String signerEmail) {
        CreateEtchPacket packetPayload = new CreateEtchPacket();
        packetPayload.name = "Test Docs - " + signerName;
        packetPayload.signatureEmailSubject = "Custom email subject";
        packetPayload.signatureEmailBody = "Custom please sign these documents....";

        List<IAttachable> etchFiles = this.getFiles(pdfTemplateEid);
        List<EtchSigner> signers = this.getSigners(signerName, signerEmail);
        PayloadData data = this.getPayloadData(signerName, signerEmail);

        packetPayload.files = etchFiles.toArray(new IAttachable[0]);
        packetPayload.signers = signers.toArray(new EtchSigner[0]);
        packetPayload.data = data;

        return packetPayload;
    }

    public static void main(String[] args) {
        String pdfTemplateId = "B5Loz3C7GVortDmn4p2P";
        String signerName = "Testy Signer";
        String signerEmail = 'testy@signer.com';

        CreateEtchPacket payload = this.getPacketVariables(pdfTemplateId, signerName, signerEmail);

        HttpResponse<String> response = this.callCreateEtchPacket(payload)
        String res = response.body();
    }
}

Create & send an e-sign packet in seconds with Document AI

Upload any PDF and watch Anvil Document AI identify input and signature fields, identify signers and connects them to fields. It's free - no signup required.

Get a demo
(from a real person)

Schedule some time on our calendar to talk through your specific use case and see which Anvil products can help.
    Want to try Anvil first?
    Want to try Anvil first?