←Select platform

OwnerPassword Property

Summary

Owner password value to be used in the resulting PDF document.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public string OwnerPassword { get; set; } 
Public Property OwnerPassword As String 
public string OwnerPassword {get; set;} 
@property (nonatomic, copy, nullable) NSString *ownerPassword 
public String getOwnerPassword() 
public void setOwnerPassword(String ownerPassword) 
             
 <br/>get_OwnerPassword();<br/>set_OwnerPassword(value);<br/>Object.defineProperty('OwnerPassword');  
public: 
property String^ OwnerPassword { 
   String^ get(); 
   void set (    String^ ); 
} 

Property Value

A String that contains the user password value to be used. To reset the owner password, use either an empty string or null. Default value is null.

Remarks

The owner password is used by PDF viewers to grant or deny editing the PDF document. For more information, refer to the Protected property.

The OwnerPassword property is only used when the Protected property is set to true.

Note that OwnerPassword is not supported when DocumentType is PdfDocumentType.PdfA.

Example

For an example, refer to PdfDocumentOptions.

Requirements

Target Platforms

Help Version 19.0.2017.10.18
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Forms.DocumentWriters Assembly