com.spire.pdf
Class PdfDocumentPrivilege

java.lang.Object
  extended by com.spire.pdf.PdfDocumentPrivilege

public class PdfDocumentPrivilege
extends java.lang.Object

Represents the privileges for accessing pdf file.


Constructor Summary
PdfDocumentPrivilege()
          Initializes a new instance.
 
Method Summary
static PdfDocumentPrivilege getAllowAll()
          All allowed.
static PdfDocumentPrivilege getForbidAll()
          All forbidded.
 boolean isAllowAssembly()
          Gets the permission which allow assembly or not.
 boolean isAllowContentCopying()
          Gets the permission which allow copy contents or not.
 boolean isAllowCopyContentAccessibility()
          Gets the permission which allow copy content for accessibility or not.
 boolean isAllowDegradedPrinting()
          Gets the permission which allow degraded printing or not.
 boolean isAllowFillFormFields()
          Gets the permission which allow fill in form fields or not.
 boolean isAllowModifyAnnotations()
          Gets the permission which allow modify annotations or not.
 boolean isAllowModifyContents()
          Gets the permission which allow modify contents or not.
 boolean isAllowPrint()
          Gets the permission which allow print or not.
 void setAllowAssembly(boolean value)
          Sets the permission which allow assembly or not.
 void setAllowContentCopying(boolean value)
          Sets the permission which allow copy contents or not.
 void setAllowCopyContentAccessibility(boolean value)
          Sets the permission which allow copy content for accessibility or not.
 void setAllowDegradedPrinting(boolean value)
          Sets the permission which allow degraded printing or not.
 void setAllowFillFormFields(boolean value)
          Sets the permission which allow fill in form fields or not.
 void setAllowModifyAnnotations(boolean value)
          Sets the permission which allow modify annotations or not.
 void setAllowModifyContents(boolean value)
          Sets the permission which allow modify contents or not.
 void setAllowPrint(boolean value)
          Sets the permission which allow print or not.
 

Constructor Detail

PdfDocumentPrivilege

public PdfDocumentPrivilege()
Initializes a new instance. Default value: All forbidded.

Method Detail

getAllowAll

public static PdfDocumentPrivilege getAllowAll()
All allowed.

Returns:
PdfDocumentPrivilege element.

getForbidAll

public static PdfDocumentPrivilege getForbidAll()
All forbidded.

Returns:
PdfDocumentPrivilege element.

isAllowPrint

public boolean isAllowPrint()
Gets the permission which allow print or not.

Returns:
The value.

setAllowPrint

public void setAllowPrint(boolean value)
Sets the permission which allow print or not.

Parameters:
value - The value.

isAllowModifyContents

public boolean isAllowModifyContents()
Gets the permission which allow modify contents or not.

Returns:
The value.

setAllowModifyContents

public void setAllowModifyContents(boolean value)
Sets the permission which allow modify contents or not.

Parameters:
value - The value.

isAllowContentCopying

public boolean isAllowContentCopying()
Gets the permission which allow copy contents or not.

Returns:
The value.

setAllowContentCopying

public void setAllowContentCopying(boolean value)
Sets the permission which allow copy contents or not.

Parameters:
value - The value.

isAllowModifyAnnotations

public boolean isAllowModifyAnnotations()
Gets the permission which allow modify annotations or not.

Returns:
The value.

setAllowModifyAnnotations

public void setAllowModifyAnnotations(boolean value)
Sets the permission which allow modify annotations or not.

Parameters:
value - The value.

isAllowFillFormFields

public boolean isAllowFillFormFields()
Gets the permission which allow fill in form fields or not.

Returns:
The value.

setAllowFillFormFields

public void setAllowFillFormFields(boolean value)
Sets the permission which allow fill in form fields or not. Note: The RC4_40 algorithm is not supported.

Parameters:
value - The value.

isAllowCopyContentAccessibility

public boolean isAllowCopyContentAccessibility()
Gets the permission which allow copy content for accessibility or not. Note: The RC4_40 algorithm is not supported.

Returns:
The value.

setAllowCopyContentAccessibility

public void setAllowCopyContentAccessibility(boolean value)
Sets the permission which allow copy content for accessibility or not.

Parameters:
value - The value.

isAllowAssembly

public boolean isAllowAssembly()
Gets the permission which allow assembly or not.

Returns:
The value.

setAllowAssembly

public void setAllowAssembly(boolean value)
Sets the permission which allow assembly or not.

Parameters:
value - The value.

isAllowDegradedPrinting

public boolean isAllowDegradedPrinting()
Gets the permission which allow degraded printing or not.

Returns:
The value.

setAllowDegradedPrinting

public void setAllowDegradedPrinting(boolean value)
Sets the permission which allow degraded printing or not.

Parameters:
value - The value.