Skip to the content.

hmRep_ENCRYPT PDF ( Input ; Output ; Password ; LoadPassword)

Introduced in v20, Preemptive: yes
Parameter Type In/Out Description
Input Text Input path
Output Text Output path
Password Text Password
LoadPassword Text Password for open the PDF

Description

The command hmRep_ENCRYPT PDF encrypts an existing PDF file with the given password.

The path must be in POSIX style on macOS.

Example

var $fileFrom; $fileTo : 4D.File

hmRep_ENCRYPT PDF($fileFrom.path; $fileTo.path; "myPassword" ; "")