Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides
New in version: 5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2    Statistic  

DynaPDF.ImportEncryptionSettings

Imports the encryption settings from the currently open import file.

Component: DynaPDF
Version: 7.0
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: Yes

MBS( "DynaPDF.ImportEncryptionSettings"; PDF )

Parameters

Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf

Result

Returns OK or error.

Description

Imports the encryption settings from the currently open import file.
If the PDF file is not encrypted, the function does nothing. To determine whether the open PDF file is encrypted call DynaPDF.GetInIsEncrypted.
The encryption settings should be imported to make sure that the PDF file can be saved with the same settings after it was edited. The user rights should be considered if the file was opened with the open password, also if the password was just an empty string. See DynaPDF.GetUserRights for further information.
If the file was opened with the owner password, then all editing rights should be grated. The PDF file must be closed with DynaPDF.CloseFile or DynaPDF.CloseAndSignFile for example. Don't use DynaPDF.CloseFileEx for example since this function would override the encryption settings.
If the file should be saved unencrypted call DynaPDF.ResetEncryptionSettings() before closing the file. 
If the function succeeds the return value is 1. If the function fails the return value is 0.

See also


DynaPDF.HighlightPattern   -   DynaPDF.ImportPDFFile

Feedback: Report problem or ask question.




Links
MBS Real Studio Plugins - Pfarrgemeinde Ministranten Nickenich