PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
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.
Example
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 occurred. ErrorInfo returns the details of the error.
<Source PDF file>: Character string (with quotes)
Name and full path of the PDF file to protect.
Note: This PDF file must not already be password protected.
<Result PDF file>: Character string (with quotes)
Name and full path of the protected PDF file.
<Options>: Integer constant (or combination of constants)
Available protection options:
iProtectionCommentProtection against the addition or modification of comments.
iProtectionDefaultProtection by default: the pdf file is encrypted with the password without any additional protection.
iProtectionPrintingThe PDF file cannot be printed.
iProtectionModificationThe content of PDF file cannot be modified.
iProtectionSelectionThe content of PDF file cannot be copied or extracted from the file.
<Password>: Character string (with quotes)
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 (with quotes)
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.
Component : wd250wdpdf.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment