Anvil Document SDK is live on Product Hunt. We'd love your support!Vote for Anvil.
Anvil Logo
Products
Industries
Resources
Developers

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.
Beyond giant hero assetGiant hero assetDesktop hero assetMobile hero assetTablet hero asset

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();
    }
}

Try e-signatures now


Upload a PDF, create a free etch packet, and send to your signers using the demo below to see what you can automate with Java and the Anvil e-signature API.

Sign up for a live demo

Request a 30-minute live demo today and we'll get in touch shortly. During the meeting our Sales team will help you find the right solution, including:
  • Simplifying data gathering
  • Streamlining document preparation
  • Requesting e-signatures
  • Building and scaling your business
Want to try Anvil first?Sign up for free
Want to try Anvil first?Sign up for free