encryptPDF

Password protects a stored PDF file and saves it to the file upload location.

Syntax

function encryptPDF(sourceRealName: string, password: string): string
 
Parameter Description
sourceRealName Unique internal ID of the source PDF file (real name).
password Password required to open the protected PDF.

Return Value

Returns a string containing the protected PDF's real name.

Examples