|
|
|
|
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 opening the PDF file. 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 | Prevents from adding or editing comments. | iProtectionDefault | Protection by default: the pdf file is encrypted with the 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 allow the modification of the protection options for 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: wd290wdpdf.dll
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|