Browse our Products

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.

 

GroupDocs.Signature for Node.js via Java 23.12

Download   Support Forum 

File Details

  • Downloads:
  • 1
  • File Size:
  • 43.28KB
  • Date Added:
  • 27/5/2024

Description

This contains the NPM package of GroupDocs.Signature for Node.js via Java 23.12 release.

File Details

Supercharged Document Signing

GroupDocs.Signature for Node.js via Java 23.12 lets developers integrate a seamless document signing experience into their applications. It enables them to sign critical documents directly within their solutions. The following code example illustrates the feature usage.



const groupdocs = require('@groupdocs/groupdocs.signature')

function signWithBarcode(filePath, outputPath) {
  const signature = new groupdocs.Signature(filePath);

  // Create barcode option with predefined barcode text
  const options = new groupdocs.BarcodeSignOptions('JohnSmith');
  // Setup barcode encoding type
  options.setEncodeType(groupdocs.BarcodeTypes.Code128);
  // Set signature position
  options.setLeft(100);
  options.setTop(100);
  options.setWidth(200);
  options.setHeight(50);
  
  // Sign document to file
  signature.sign(outputFilePath, options);
}

module.exports = signWithBarcode

Source*

Document Signature Verification

Beef up the security of your applications by offering signature verification capabilities with this version of the Node.js document signing API. Users can effortlessly verify and confirm the authenticity of signed documents, as highlighted in this code sample.



function verifyBarcode(filePath) { 
  // Initialize Signature instance
  const signature = new groupdocs.Signature(filePath);

  // Initialize BarcodeVerifyOptions
  const options = new groupdocs.BarcodeVerifyOptions();
  options.setAllPages(true); // This value is set by default
  options.setText('John');
  options.setMatchType(groupdocs.TextMatchType.Contains);

  // Verify document signatures
  const result = signature.verify(options);

  if (result.isValid()) {
    console.log('\nDocument was verified successfully!');
  } else {
    console.log('\nDocument failed the verification process.');
  }
}

module.exports = verifyBarcode

Source*

With GroupDocs.Signature for Node.js via Java 23.12, users can work with a tool that allows them to locate and validate signatures embedded within their documents. This sample code illustrates signature search in Node.js.



function searchForBarcode(filePath) {
  const signature = new groupdocs.Signature(filePath);
  const options = new groupdocs.BarcodeSearchOptions();
  options.setAllPages(true); // this value is set by default

  // Search for signatures in the document
  const signatures = signature.search(groupdocs.BarcodeSignature.class, options).toArray();
  console.log('\nSource document contains the following signatures.');

  for (const barcodeSignature of signatures) {
    console.log(`Barcode signature found at page ${barcodeSignature.getPageNumber()} with type ${barcodeSignature.getEncodeType()} and text ${barcodeSignature.getText()}`);
  }
}

module.exports = searchForBarcode

Source*

Document Information Retrieval

Retrieve extensive file information in your document signing solutions, such as metadata, formatting, and page count, for improved processing. Check out this example code to learn how to use this feature.



function getDocumentInfo(filePath) {

  const signature = new groupdocs.Signature(filePath);

  const documentInfo = signature.getDocumentInfo();

  console.log(`Document properties ${path.basename(filePath)}`);
  console.log(` - format : ${documentInfo.getFileType().getFileFormat()}`);
  console.log(` - extension : ${documentInfo.getFileType().getExtension()}`);
  console.log(` - size : ${documentInfo.getSize()}`);
  console.log(` - page count : ${documentInfo.getPageCount()}`);
  console.log(` - Form Fields count : ${documentInfo.getFormFields().size()}`);
  console.log(` - Text signatures count : ${documentInfo.getTextSignatures().size()}`);
  console.log(` - Image signatures count : ${documentInfo.getImageSignatures().size()}`);
  console.log(` - Digital signatures count : ${documentInfo.getDigitalSignatures().size()}`);
  console.log(` - Barcode signatures count : ${documentInfo.getBarcodeSignatures().size()}`);
  console.log(` - QrCode signatures count : ${documentInfo.getQrCodeSignatures().size()}`);
  console.log(` - FormField signatures count : ${documentInfo.getFormFieldSignatures().size()}`);

  for (const pageInfo of documentInfo.getPages().toArray()) {
    console.log(` - page-${pageInfo.getPageNumber()} Width ${pageInfo.getWidth()}, Height ${pageInfo.getHeight()}`);
  }
}

module.exports = getDocumentInfo

Source*

You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting GroupDocs.Signature for Node.js via Java 23.12 Release Notes.

 English