Package org.verapdf.pd.encryption
Class AccessPermissions
java.lang.Object
org.verapdf.pd.encryption.AccessPermissions
Represents access permissions for document.
- Author:
- Sergey Shemyakov
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleanbooleanbooleancanPrint()booleanstatic AccessPermissionsstatic AccessPermissionsgetUserPermissions(int p)
-
Method Details
-
getOwnerPermissions
- Returns:
- owner permissions where everything is permitted.
-
getUserPermissions
- Parameters:
p- is P value in encryption dict for standard security handler.- Returns:
- user permissions specified by p as described in 7.6.3.2 "Standard Encryption Dictionary" in PDF32000_2008.
-
canPrint
public boolean canPrint()- Returns:
- true If supplied with the user password they are allowed to print.
-
canModify
public boolean canModify()- Returns:
- true If supplied with the user password they are allowed to modify the document.
-
canExtractContent
public boolean canExtractContent()- Returns:
- true If supplied with the user password they are allowed to extract content from the PDF document.
-
canModifyAnnotations
public boolean canModifyAnnotations()- Returns:
- true If supplied with the user password they are allowed to modify annotations.
-
canFillInForm
public boolean canFillInForm()- Returns:
- true If supplied with the user password they are allowed to fill in form fields.
-
canExtractForAccessibility
public boolean canExtractForAccessibility()- Returns:
- true If supplied with the user password they are allowed to extract content from the PDF document.
-
canAssembleDocument
public boolean canAssembleDocument()- Returns:
- true If supplied with the user password they are allowed to extract content from the PDF document.
-
canPrintDegraded
public boolean canPrintDegraded()- Returns:
- true If supplied with the user password they are allowed to print the document in a degraded format.
-