encryptPPTX

encryptPPTX

PREMIUM TRIAL / ADVANCED

Encrypts (AES128) a PowerPoint document.

Description
public encryptPPTX (string $source, string $target, array $options)

This method allows to encrypt a PowerPoint document. The final user needs to insert the password included in the options array to access the content of the resulting file.

The encrypted file is a Microsoft Binary Compound File that is directly recognized as an encrypted PowerPoint document by the standard PowerPoint interface.

Files up to 6.5MB.

Parameters

source

Path to the PowerPoint document that you want to encrypt.

target

Path to the resulting encrypted document.

options

The possible keys and values are (required options are shown with yellow background):

Key Type Description
password string The password should be a string of 15 or less characters. If you introduce a password with more than 15 characters it will be automatically truncated.
Exceptions

File does not exist.

Password not set.

File size bigger than maximum of 6.5 MB.

Code samples

Example #1