←Select platform

OwnerPassword Property

Summary

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

Syntax
C#
VB
Objective-C
C++
Java
public string OwnerPassword { get; set; } 
Public Property OwnerPassword As String 
@property (nonatomic, copy, nullable) NSString *ownerPassword 
public String getOwnerPassword() 
public void setOwnerPassword(String 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 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.Writer Assembly