Function Reference
Page 506 of 839
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
GetUseExactPwd
Syntax:
LBOOL pdfGetUseExactPwd(
const PPDF* IPDF) // Instance pointer
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 true, the open or owner password must be
known to open the PDF file (see also SetUseExactPwd()).
Default value = 1 (true)
Remarks:
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 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
The property UseExactPwd should be true, if the application is a commercial software product.
GetUseGlobalImpFiles
Syntax:
LBOOL pdfGetUseGlobalImpFiles(
const PPDF* IPDF) // Instance pointer
The property specifies whether import files should be loaded permanent into memory, e.g. to enable
splitting of large PDF files. An open import file will not be closed when CloseFile() or FreePDF() is
called when the property is true. See also SetUseGlobalImpFiles().
Default value = 0 (false)