Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

docusign-jsx

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docusign-jsx

This Library is for the sole purpose of Signing Documents on the fly electronically.

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

What is this?

This Library is for the sole purpose of Signing Documents on the fly electronically.

Installation

npm i docusign-jsx -- save

How do I use it?

Then How to use for example

import React from 'react';
import { createSignatureModal, addImageToWordDocument, convertWordToPDF } from 'docusign-jsx';

class SignatureComponent extends React.Component {
  handleCreateSignatureModal = () => {
    createSignatureModal();
  };

  handleAddImageToWordDocument = () => {
    // Specify the file path where you want to save the Word document
    const filePath = 'path/to/your_word_document.docx';

    // Call the addImageToWordDocument function from the package
    addImageToWordDocument(filePath);
  };

  handleConvertWordToPDF = () => {
    // Specify the file paths for input Word document and output PDF document
    const docxFilePath = 'path/to/your_word_document.docx';
    const pdfFilePath = 'path/to/your_output_pdf.pdf';

    // Call the convertWordToPDF function from the package
    convertWordToPDF(docxFilePath, pdfFilePath);
  };

  render() {
    return (
      <div>
        <button onClick={this.handleCreateSignatureModal}>Open Signature Modal</button>
        <button onClick={this.handleAddImageToWordDocument}>Add Image to Word</button>
        <button onClick={this.handleConvertWordToPDF}>Convert Word to PDF</button>
      </div>
    );
  }
}

export default SignatureComponent;

FAQs

Package last updated on 17 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts