Interface AccessPermissionType
-
- All Known Implementing Classes:
EncryptType,RecipientType
public interface AccessPermissionTypeA class implementing
AccessPermissionTypeshall indicate which access permissions an access policy user (recipient) shall have, concerning the document. In a PDF document such permissions are represented by a number of bit flags, where certain bits are setting specific permissions.Conforming readers shall ignore all flags other than those at bit positions 3, 4, 5, 6, 9, 10, 11, and 12.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisCanAssemble()Bit position 11: can assemblebooleanisCanExtractContent()Bit position 5: can extractbooleanisCanExtractForAccessibility()Bit position 10: can extract for accessibilitybooleanisCanFillInForm()Bit position 9: can fill in formsbooleanisCanModify()Bit position 4: can modifybooleanisCanModifyAnnotations()Bit position 6: can modify annotationsbooleanisCanPrint()Bit position 3: can printbooleanisCanPrintHighRes()Bit position 12: can print high resolution
-
-
-
Method Detail
-
isCanPrint
boolean isCanPrint()
Bit position 3: can print(Security handlers of revision 2) Print the document. (Security handlers of revision 3 or greater) Print the document (possibly not at the highest quality level, depending on whether bit 12 is also set).
- Returns:
true, if the user may print the document.
-
isCanModify
boolean isCanModify()
Bit position 4: can modifyModify the contents of the document by operations other than those controlled by bits 6, 9, and 11.
- Returns:
true, if a user may edit document contents.
-
isCanExtractContent
boolean isCanExtractContent()
Bit position 5: can extract(Security handlers of revision 2) Copy or otherwise extract text and graphics from the document, including extracting text and graphics (in support of accessibility to users with disabilities or for other purposes). (Security handlers of revision 3 or greater) Copy or otherwise extract text and graphics from the document by operations other than that controlled by bit 10.
- Returns:
true, if a user may extract contents.
-
isCanModifyAnnotations
boolean isCanModifyAnnotations()
Bit position 6: can modify annotationsAdd or modify text annotations, fill in interactive form fields, and, if bit 4 is also set, create or modify interactive form fields (including signature fields).
- Returns:
true, if a user may edit a document's annotations.
-
isCanFillInForm
boolean isCanFillInForm()
Bit position 9: can fill in forms(Security handlers of revision 3 or greater) Fill in existing interactive form fields (including signature fields), even if bit 6 is clear.
- Returns:
true, if a user may fill in existing forms.
-
isCanExtractForAccessibility
boolean isCanExtractForAccessibility()
Bit position 10: can extract for accessibility(Security handlers of revision 3 or greater) Extract text and graphics (in support of accessibility to users with disabilities or for other purposes).
- Returns:
true, if a user may extract contents for accessibility purposes.
-
isCanAssemble
boolean isCanAssemble()
Bit position 11: can assemble(Security handlers of revision 3 or greater) Assemble the document (insert, rotate, or delete pages and create bookmarks or thumbnail images), even if bit 4 is clear.
- Returns:
true, if a user may assemble the document.
-
isCanPrintHighRes
boolean isCanPrintHighRes()
Bit position 12: can print high resolution(Security handlers of revision 3 or greater) Print the document to a representation from which a faithful digital copy of the PDF content could be generated. When this bit is clear (and bit 3 is set), printing is limited to a low-level representation of the appearance, possibly of degraded quality.
- Returns:
true, if the user may print the document with high resolution.
-
-