How to create an envelope for offline signing (PDF)
This topic demonstrates how to create an envelope that contains a PDF file that can be used for offline signing.
Note: To sign the envelope offline, you must set the account used for authentication as either:
- the host for an In Person Signer or as
- a signer.
Required data
Running the code in this how-to requires this data:
Step 1. Log in to Docusign
To make the API call shown in this how-to, you must be logged in to Docusign.
See How to log in to Docusign from your app for details.
Step 2. Create an envelope definition
To create the envelope definition:
- Create a document. This includes the document’s name, filepath, and ID.
- Create your recipients. For this envelope, create an ‘in person signer’, ’signer’, and a ‘CC’ recipient. In this example, the in person signer name and email are used for the CC recipient, so that the in person signer will receive a copy of the signed document.
- Create and assign signable fields (also known as tabs) specific to each signer within the document.
- Set the envelope definition data, including a name, subject, message, recipients, and documents.
Step 3. Create the envelope
Next, use the definition you created in the previous step to create an envelope.
Expected response
If your envelope creation is successful, the onSuccess method in the listener defined in the previous step will be triggered. The temporary envelope ID returned in this method can be used to start the offline signing process.