Remove PDF password

Learn from this guide how you can integrate the Visual PDF API to remove password protection from a PDF file.

Basic PDF password removal

To remove the password from a PDF, nothing could be simpler: in the description of your pipeline, add a remove-password type task.

    
      // Creating the form data for the pipeline
      const form = new FormData();

      form.append(
        'tasks',
        [
          {
            tool: 'remove-password',
            options: {
              password: 'my_sup3r_s3cr3t_pwd',
            },
          },
        ],
      );
    
  

Constraint of using a password removal task

A password removal task should always be called first in a pipeline. It is indeed necessary for the following tasks to process files that are not password protected.