ftos.files.pdf.encrypt

IMPORTANT!  
Starting with v24.3.0, this is renamed from encryptPDF to ftos.files.pdf.encrypt.

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

This is a business logic method for business service components.

Syntax

function ftos.files.pdf.encrypt(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