1.0.0-beta.1 • Published 5 months ago
boldsign v1.0.0-beta.1
boldsign
Easily integrate BoldSign's e-signature features into your Node.js applications. This package simplifies sending documents for signature, embedding signing ceremonies, tracking document status, downloading signed documents, and managing e-signature workflows.
Prerequisites
- Node 12 or higher.
- Free developer account
Documentation
Installation
npm install boldsign
Getting Started
Please follow the installation procedure and then run the following:
TypeScript Example
import { DocumentApi } from 'boldsign';
import { DocumentSigner, FormField, Rectangle, SendForSign } from 'boldsign';
import * as fs from 'fs';
const documentApi = new DocumentApi();
documentApi.setApiKey('YOUR_API_KEY_HERE');
const bounds = new Rectangle();
bounds.x = 100;
bounds.y = 50;
bounds.width = 100;
bounds.height = 100;
const formField = new FormField();
formField.fieldType = FormField.FieldTypeEnum.Signature;
formField.pageNumber = 1;
formField.bounds = bounds;
const documentSigner = new DocumentSigner();
documentSigner.name = "David";
documentSigner.emailAddress = "david@example.com";
documentSigner.signerType = DocumentSigner.SignerTypeEnum.Signer;
documentSigner.formFields = [formField];
var files = fs.createReadStream("agreement.pdf");
const sendForSign = new SendForSign();
sendForSign.title = "Agreement";
sendForSign.signers = [documentSigner];
sendForSign.files = [files];
const sendDocumentResponse = await documentApi.sendDocument(sendForSign);
1.0.0-beta.1
5 months ago