|
|
|
|
|
PDFPassword (Function) In french: PDFMotDePasse Protects and encrypts a PDF document with a password. A new encrypted PDF document with the specified password is created. This password will be requested when the PDF file is opened. IF NOT PDFPassword("clear.pdf", "encrypt.pdf", iProtectionDefault, "password") THEN Error(ErrorInfo()) END Syntax
<Result> = PDFPassword(<Source PDF file> , <Result PDF file> , <Options> , <Password> [, <Protection password>])
<Result>: Boolean - True if the protection is applied,
- False if a problem occurs. ErrorInfo returns the details of the error.
<Source PDF file>: Character string Name and full path of the PDF file to protect. Remark: This PDF file must not already be password-protected. <Result PDF file>: Character string Name and full path of the protected PDF file. <Options>: Integer constant (or combination of constants) Available protection options:
| | iProtectionComment | Restricts adding or editing comments. | iProtectionDefault | Default protection: the PDF file is only encrypted with a password (without any additional protection). | iProtectionModification | The content of the PDF file cannot be modified. | iProtectionPrinting | The PDF file cannot be printed. | iProtectionSelection | The content of the PDF file cannot be copied or extracted from the file. |
<Password>: Character string Password used to open the PDF file. This password allows you to decrypt the PDF file to read it while respecting the permissions set in the <Options> parameter.This password cannot contain Unicode characters. <Protection password>: Optional character string Password used to change the protection options of the PDF file. If this password is used, the protection options specified in the <Options> parameters will not be taken into account. This password cannot contain Unicode characters. Business / UI classification: Business Logic Component: wd300wdpdf.dll
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|