Example usage for Java org.apache.pdfbox.pdmodel.encryption AccessPermission fields, constructors, methods, implement or subclass
The text is from its open source code.
AccessPermission() Create a new access permission object. | |
AccessPermission(byte[] b) Create a new access permission object from a byte array. | |
AccessPermission(int permissions) Creates a new access permission object from a single integer. |
boolean | canAssembleDocument() This will tell if the user can insert/rotate/delete pages. |
boolean | canExtractContent() This will tell if the user can extract text and images from the PDF document. |
boolean | canExtractForAccessibility() This will tell if the user can extract text and images from the PDF document for accessibility purposes. |
boolean | canFillInForm() This will tell if the user can fill in interactive form fields (including signature fields) even if #canModifyAnnotations() canModifyAnnotations() returns false. |
boolean | canModify() This will tell if the user can modify contents of the document. |
boolean | canModifyAnnotations() This will tell if the user can add or modify text annotations and fill in interactive forms fields and, if #canModify() canModify() returns true, create or modify interactive form fields (including signature fields). |
boolean | canPrint() This will tell if the user can print. |
boolean | canPrintDegraded() This will tell if the user can print the document in a degraded format. |
boolean | isOwnerPermission() This will tell if the access permission corresponds to owner access permission (no restriction). |
boolean | isReadOnly() This will tell if the object has been set as read only. |
void | setCanAssembleDocument(boolean allowAssembly) Set if the user can insert/rotate/delete pages. |
void | setCanExtractContent(boolean allowExtraction) Set if the user can extract content from the document. |
void | setCanExtractForAccessibility(boolean allowExtraction) Set if the user can extract content from the document for accessibility purposes. |
void | setCanFillInForm(boolean allowFillingInForm) Set if the user can fill in interactive form fields (including signature fields) even if #canModifyAnnotations() canModifyAnnotations() returns false. |
void | setCanModify(boolean allowModifications) Set if the user can modify the document. |
void | setCanModifyAnnotations(boolean allowAnnotationModification) Set if the user can add or modify text annotations and fill in interactive forms fields and, if #canModify() canModify() returns true, create or modify interactive form fields (including signature fields). |
void | setCanPrint(boolean allowPrinting) Set if the user can print. |
void | setCanPrintDegraded(boolean canPrintDegraded) Set if the user can print the document in a degraded format. |