Delete Signature from PDF using Node.js REST API

This short tutorial shows Node.js developers how to remove a PDF digital signature by uploading the file to Aspose Cloud storage, checking for the signature field, deleting it via the REST API, and finally downloading the cleaned document. For more information about the PDF format, see the PDF file info page on kb.fileformat.app.

Prerequisite

Steps to Delete a Signature from PDF using Node.js RESTful Service

  1. Create an instance of PdfApi using your Client Secret and Client ID.
  2. Define the name of the PDF and open it from the local file system.
  3. Upload the local PDF file to Aspose Cloud using the UploadFile method.
  4. Verify that the signature field exists in the uploaded PDF.
  5. If the signature is present, delete the field with the DeleteField operation.
  6. After deletion, download the modified PDF and save it locally.

These steps outline the complete workflow for removing a digital signature from a PDF via the Node.js REST interface: upload, validate, delete, and retrieve the updated file.

Code to Delete Digital Signature from PDF using Node.js-based API

The snippet above demonstrates how to programmatically remove a digital signature from a PDF using the Node.js SDK. If you already know the signature field name, you can skip the verification step. After the signature is removed, you may continue processing the PDF before saving it locally.

For information on adding a signature to a PDF, see the article Sign PDF using Node.js REST API.