API V2

Unlock PDF

It sometimes may require that a data or document information no longer need security. There may be situations where a document has to be opened multiple times and every other instance of it asks for the password. This can be annoying and the user would want to remove the password set, in the file. This feature of PDF4me removes password protection from the PDF file.

  • Method: POST
  • Endpoint: /api/v2/Unlock

Parameters

PDF File contentbase64, Required

Map the source file content from previous action.

File Namestring, Required

Source file name with proper file extension

PasswordString, Required

Password of PDF file, the input must be in string format.
Example - 1234

Output

File Contentbinary

File content of the unlocked document

File ContentBinary

File content of the unlocked document

Header
Content-Type:application/json
Authorization: Please copy key from the link.

Payload

{
  "docContent": "Please put PDF base64 content",
  "docName": "output.pdf",
  "password": "1234"
}

PDF4me api samples

CSharp(C#)
Java
JavaScript
Python
Salesforce
n8n
Google Script
AWS Lambda