- addBackgroundImage
- addFooter
- addHeader
- addLineNumbering
- addMacroFromDoc
- addPageBorders
- addProperties
- addSection
- createCharacterStyle
- createListStyle
- createParagraphStyle
- docxSettings
- importHeadersAndFooters
- importListStyle
- importStyles
- modifyPageLayout
- parseStyles
- removeFooters
- removeHeaders
- setBackgroundColor
- setDefaultFont
- setDocumentDefaultStyles
- setEncodeUTF8
- setLanguage
- setMarkAsFinal
pdx:encryptPDF
Encrypts a PDF file.
Description
Element definition
This element allows to encrypt a PDF file. The final user will be prompted to introduce the password included in the $options array to access the contents of the resulting PDF file.
You may find a detailed description of this package in the cryptoPHPDocX section of the API documentation.
Attributes and sub-elements
src
Path to the PDF document that we want to encrypt.
target
Path to the resulting encrypted PDFdocument.
options
The possible keys and values are (required options are shown with red background):
key | Description |
---|---|
password | String of 15 or less characters |
mode |
|