LEADTOOLS PDF (Leadtools.Pdf assembly)
LEAD Technologies, Inc

SecurityOptions Property






Gets or sets the PDF security and encryption options to use when updating or creating a PDF file.
Syntax
public PDFSecurityOptions SecurityOptions {get; set;}
'Declaration
 
Public Property SecurityOptions As PDFSecurityOptions
'Usage
 
Dim instance As PDFFile
Dim value As PDFSecurityOptions
 
instance.SecurityOptions = value
 
value = instance.SecurityOptions
public PDFSecurityOptions SecurityOptions {get; set;}
 get_SecurityOptions();
set_SecurityOptions(value);
public:
property PDFSecurityOptions^ SecurityOptions {
   PDFSecurityOptions^ get();
   void set (    PDFSecurityOptions^ value);
}

Property Value

A PDFSecurityOptions that contain the PDF security and encryption options to use when this PDFFile is used to update or create a PDF file. Default value is null (Nothing in Visual Basic).
Remarks

The following methods of the PDFFile class will use the secutity options set in .SecurityOptions when updating or creating a PDF file:

If the value of SecurityOptions is null (Nothing in Visual Basic), then the PDFFile will not encrypt the result PDF file.

There are two different ways to protect a PDF file with a password:

You cannot use both UserPassword and OwnerPassword in the same PDF file. If both values are set, then the PDFFile object will use OwnerPassword and ignore UserPassword.

Similar to the DocumentProperties property, the value of SecurityOptions will not be modified when a PDF file is loaded in this object using the Load method.

To check if a PDF file is encrypted and requires a password to view or modify, use the IsEncrypted method.

Example

For an example, refer to PDFSecurityOptions.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PDFFile Class
PDFFile Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.