PDF security and encryption options to use when updating or creating a PDF file.
public Leadtools.Pdf.PDFSecurityOptions SecurityOptions {get; set;}
Public Property SecurityOptions As Leadtools.Pdf.PDFSecurityOptions
public:
property Leadtools.Pdf.PDFSecurityOptions^ SecurityOptions {
Leadtools.Pdf.PDFSecurityOptions^ get();
void set ( Leadtools.Pdf.PDFSecurityOptions^ );
}
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.
The following methods of the PDFFile class will use the security options set in .SecurityOptions when updating or creating a PDF file:
If the value of SecurityOptions is null, then the PDFFile will not encrypt the result PDF file.
There are two different ways to protect a PDF file with a password:
By using a user password set in UserPassword. In this mode, external viewers such as Adobe Acrobat will ask the user for the same password when opening the file for viewing. If the correct password is supplied, then all operations and rights are granted.
By using an owner password set in OwnerPassword. In this mode, external viewers such as Adobe Acrobat will ask the user for the same password when opening the file for viewing. If the correct password is supplied, the editor will check the various access rights properties to allow or disallow certain operations on the PDF file such as printing or editing.
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 determine whether a PDF file is encrypted and requires a password to view or modify, use the IsEncrypted method.
For an example, refer to PDFSecurityOptions.
Products |
Support |
Feedback: SecurityOptions Property - Leadtools.Pdf |
Introduction |
Help Version 19.0.2017.3.22
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.