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

OwnerPassword Property






Gets or sets the owner password to use when encrypting a PDF file.
Syntax
public string OwnerPassword {get; set;}
'Declaration
 
Public Property OwnerPassword As String
'Usage
 
Dim instance As PDFSecurityOptions
Dim value As String
 
instance.OwnerPassword = value
 
value = instance.OwnerPassword
public string OwnerPassword {get; set;}
 get_OwnerPassword();
set_OwnerPassword(value);
public:
property String^ OwnerPassword {
   String^ get();
   void set (    String^ value);
}

Property Value

A System.String that contains the owner password to use when encrypting a PDF file. The default value is null (Nothing in Visual Basic).
Remarks

PDF files can be encrypted with two passwords: user and owner.

The UserPassword is used only with viewing the PDF file, so PDF viewers such as Adobe Acrobat will ask for the UserPassword if one is specified in a PDF. If a correct value is supplied, the file can be viewed. To allow anyone to view the PDF file, do not set a value in the UserPassword (leave it as an empty string or null).

The OwnerPassword is used to restrict certain rights on the PDF file when loading into a viewer such as Adobe Acrobat. These include disabling printing, (PrintEnabled and HighQualityPrintEnabled), copying text to the clipboard (CopyEnabled), annotations (AnnotationsEnabled) and editing and re-assembling the PDF file (EditEnabled and AssemblyEnabled). When encrypting a PDF file with an OwnerPassword, you can enable or disable any of these rights based on your application needs.

You cannot supply both a user and owner password in the same PDF file. If both passwords are supplied, then the UserPassword is ignored.

Example

For an example, refer to PDFFile.

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

PDFSecurityOptions Class
PDFSecurityOptions Members

 

 


Products | Support | Contact Us | Copyright Notices

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