Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
DynaPDF.SetUseExactPwd
Whether to require exact passwords.
Component |
Version |
macOS |
Windows |
Linux |
Server |
iOS SDK |
DynaPDF
|
5.0 |
✅ Yes |
✅ Yes |
✅ Yes |
✅ Yes |
✅ Yes |
MBS( "DynaPDF.SetUseExactPwd"; PDF; Value )
More
MBS(
"DynaPDF.SetUseExactPwd"; /* Whether to require exact passwords. */
$PDF; /* The PDF reference returned from
DynaPDF.New. */
$Value) /* The new setting. Pass 1 or 0.e.g. 1 */
Less
Parameters
Parameter |
Description |
Example |
PDF |
The PDF reference returned from DynaPDF.New. |
$pdf |
Value |
The new setting. Pass 1 or 0. |
1 |
Result
Returns OK or error.
Description
Whether to require exact passwords.
If the property UseExactPwd is false, an encrypted PDF file can always be decrypted, if either the open or owner password in the file is an empty string. If 1, the open or owner password must be known to open the PDF file.
Default value = 1
If your application should allow the modification of encrypted PDF files, you may check the access permissions to grant user rights, if the file was opened with the open password instead of the owner password (see also DynaPDF.GetUserRights).
Due to the license agreement of Adobe, all manufacturers of applications which make the treatment of encrypted PDF files possible, must respect the access permissions of a PDF file, if the file was opened with the open password.
Only if the file was opened with the owner password, all rights should be granted. See PDF Reference 1.5 for further information. This document is available at www.adobe.com.
The property UseExactPwd should be 1, if the application is a commercial product.
See also SetUseExactPwd function in DynaPDF manual.
See also
This function checks for a license.
Created 6th February 2015, last changed 6th February 2015
DynaPDF.SetTrapped
-
DynaPDF.SetUseGlobalImpFiles