Class SecurityOptions
Allows the developer to control user access passwords, encryption, and also who may edit, print and copy content from the PDF document
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal PdfEditSecurityGets allow user edits.final PdfPrintSecurityGets allow user printing.final StringGets owner password.final StringGets user password.final BooleanIs allow user annotations boolean.final BooleanIs allow user copy and paste content boolean.final BooleanIs allow user copy and paste content for accessibility boolean.final BooleanIs allow user form data boolean.final voidsetAllowUserAnnotations(Boolean value) Sets allow user annotations.final voidSets allow user copy and paste content.final voidSets allow user copy and paste content for accessibility.final voidsetAllowUserEdits(PdfEditSecurity value) Sets allow user edits.final voidsetAllowUserFormData(Boolean value) Sets allow user form data.final voidSets allow user printing.final voidsetOwnerPassword(String value) Sets owner password.final voidsetUserPassword(String value) Sets user password.
- 
Constructor Details- 
SecurityOptionspublic SecurityOptions()Instantiates a new Security options. A class defining user security settings for a PDF document.Allows the developer to control user access passwords, encryption, and also who may edit, print and copy content from the PDF document 
 
- 
- 
Method Details- 
isAllowUserAnnotationsIs allow user annotations boolean. The permissions for users to annotate the PDF document with comments.If AllowUserAnnotations is set false, the setOwnerPassword(String)must be set for the security measure to take effect.- Returns:
- the boolean
 
- 
setAllowUserAnnotationsSets allow user annotations. The permissions for users to annotate the PDF document with comments.If AllowUserAnnotations is set false, the setOwnerPassword(String)must be set for the security measure to take effect.- Parameters:
- value- the value
 
- 
isAllowUserCopyPasteContentIs allow user copy and paste content boolean. The permissions for users to extract or 'copy & paste' content (text and images) from the PDF document.If AllowUserCopyPasteContent is set false, the setOwnerPassword(String)must also be set for the security measure to take effect.- Returns:
- the boolean
 
- 
setAllowUserCopyPasteContentSets allow user copy and paste content. The permissions for users to extract or 'copy & paste' content (text and images) from the PDF document.If AllowUserCopyPasteContent is set false, the setOwnerPassword(String)must also be set for the security measure to take effect.- Parameters:
- value- the value
 
- 
isAllowUserCopyPasteContentForAccessibilityIs allow user copy and paste content for accessibility boolean. The permissions for users to extract or 'copy & paste' content (text and images) from the PDF document for accessibility.- Returns:
- the boolean
 
- 
setAllowUserCopyPasteContentForAccessibilitySets allow user copy and paste content for accessibility. The permissions for users to extract or 'copy & paste' content (text and images) from the PDF document for accessibility.- Parameters:
- value- the value
 
- 
getAllowUserEditsGets allow user edits. The permissions for users edit the PDF document. The features to edit the document depends entirely on the PDF client software used by the end user.If editing rights are restricted, then the setOwnerPassword(String)must be set for the security measure to take effect.- Returns:
- allow user edits value
 
- 
setAllowUserEditsSets allow user edits. The permissions for users edit the PDF document. The features to edit the document depends entirely on the PDF client software used by the end user.If editing rights are restricted, then the setOwnerPassword(String)must be set for the security measure to take effect.- Parameters:
- value- the value
 
- 
isAllowUserFormDataIs allow user form data boolean. The permissions for users to fill-in (enter data into) forms in the PDF document.If AllowUserFormData is set false, the setOwnerPassword(String)must be set for the security measure to take effect.Note. If you want to make the form readonly in Adobe Acrobat Reader please call Security_Api.makePdfDocumentReadOnly(InternalPdfDocument, String)method or setsetAllowUserEdits(PdfEditSecurity)toPdfEditSecurity.NO_EDITand setsetOwnerPassword(String).- Returns:
- allow user form data value
 
- 
setAllowUserFormDataSets allow user form data. The permissions for users to fill-in (enter data into) forms in the PDF document.If AllowUserFormData is set false, the setOwnerPassword(String)must be set for the security measure to take effect.Note. If you want to make the form readonly in Adobe Acrobat Reader please call Security_Api.makePdfDocumentReadOnly(InternalPdfDocument, String)method or setsetAllowUserEdits(PdfEditSecurity)toPdfEditSecurity.NO_EDITand setsetOwnerPassword(String).- Parameters:
- value- the value
 
- 
getAllowUserPrintingGets allow user printing. The permissions for users to print the PDF document.If print rights are restricted, then the setOwnerPassword(String)must be set for the security measure to take effect.- Returns:
- allow user printing value
 
- 
setAllowUserPrintingSets allow user printing. The permissions for users to print the PDF document.If print rights are restricted, then the setOwnerPassword(String)must be set for the security measure to take effect.- Parameters:
- value- the value
 
- 
getOwnerPasswordGets owner password. The owner password and enables 128Bit encryption of PDF content. An owner password is one used to enable and disable all other security settings.OwnerPassword must be set to a non empty string value for setAllowUserCopyPasteContent(Boolean),setAllowUserAnnotations(Boolean),setAllowUserFormData(Boolean)andsetAllowUserEdits(PdfEditSecurity)to be restricted.- Returns:
- the owner password
 
- 
setOwnerPasswordSets owner password. The owner password and enables 128Bit encryption of PDF content. An owner password is one used to enable and disable all other security settings.OwnerPassword must be set to a non empty string value for setAllowUserCopyPasteContent(Boolean),setAllowUserAnnotations(Boolean),setAllowUserFormData(Boolean)andsetAllowUserEdits(PdfEditSecurity)to be restricted.- Parameters:
- value- the value
 
- 
getUserPasswordGets user password. The user password and enables 128Bit encryption of PDF content.A user password if a password that each user must enter to open or print the PDF document. - Returns:
- the user password
 
- 
setUserPasswordSets user password. The user password and enables 128Bit encryption of PDF content.A user password if a password that each user must enter to open or print the PDF document. - Parameters:
- value- the value
 
 
-