asposecells.api

Class PdfSecurityOptions

Options for encrypting and access permissions for a PDF document. PDF/A does not allow security setting.

Constructor Summary
PdfSecurityOptions()
The constructor of PdfSecurityOptions
 
Property Getters/Setters Summary
methodgetAccessibilityExtractContent()
method
           Indicates whether to allow to extract text and graphics (in support of accessibility to users with disabilities or for other purposes).
methodgetAnnotationsPermission()
method
           Indicates whether to allow to add or modify text annotations, fill in interactive form fields.
methodgetAssembleDocumentPermission()
method
           Indicates whether to allow to assemble the document (insert, rotate, or delete pages and create bookmarks or thumbnail images), even if ModifyDocumentPermission is clear.
methodgetExtractContentPermission()
method
           Indicates whether to allow to copy or otherwise extract text and graphics from the document by operations other than that controlled by AccessibilityExtractContent.
methodgetExtractContentPermissionObsolete()
method
           Permission to copy or extract content Obsoleted according to PDF reference.
methodgetFillFormsPermission()
method
           Indicates whether to allow to fill in existing interactive form fields (including signature fields), even if ModifyDocumentPermission is clear.
methodgetFullQualityPrintPermission()
method
           Indicates whether to allow to print the document to a representation from which a faithful digital copy of the PDF content could be generated.
methodgetModifyDocumentPermission()
method
           Indicates whether to allow to modify the contents of the document by operations other than those controlled by AnnotationsPermission, FillFormsPermission and AssembleDocumentPermission.
methodgetOwnerPassword()
method
           Gets or sets the owner password for the encrypted PDF document.
methodgetPrintPermission()
method
           Indicates whether to allow to print the document.
methodgetUserPassword()
method
           Gets or sets the user password required for opening the encrypted PDF document.
 

    • Constructor Detail

      • PdfSecurityOptions

        PdfSecurityOptions()
        The constructor of PdfSecurityOptions
    • Property Getters/Setters Detail

      • getUserPassword/setUserPassword : String 

        String getUserPassword() / setUserPassword(value)
        
        Gets or sets the user password required for opening the encrypted PDF document.

        The owner password or user password will be required to open an encrypted PDF document for viewing.

        The user password can be null or empty string, in this case no password will be required from the user when opening the PDF document.

        Opening the document with the correct owner password allows full access to the document.

        Opening the document with the correct user password (or opening a document that does not have a user password) allows limited access as the permissions specified.

      • getOwnerPassword/setOwnerPassword : String 

        String getOwnerPassword() / setOwnerPassword(value)
        
        Gets or sets the owner password for the encrypted PDF document. The owner password allows the user to open an encrypted PDF document without any access restrictions specified.
      • getPrintPermission/setPrintPermission : boolean 

        boolean getPrintPermission() / setPrintPermission(value)
        
        Indicates whether to allow to print the document. Possibly not at the highest quality level, depending on whether FullQualityPrintPermission is also set.
      • getModifyDocumentPermission/setModifyDocumentPermission : boolean 

        boolean getModifyDocumentPermission() / setModifyDocumentPermission(value)
        
        Indicates whether to allow to modify the contents of the document by operations other than those controlled by AnnotationsPermission, FillFormsPermission and AssembleDocumentPermission.
      • getExtractContentPermissionObsolete/setExtractContentPermissionObsolete : boolean 

        boolean getExtractContentPermissionObsolete() / setExtractContentPermissionObsolete(value)
        
        Permission to copy or extract content Obsoleted according to PDF reference. NOTE: This member is now obsolete. Instead, please use ExtractContentPermission property. This property will be removed 12 months later since September 2023. Aspose apologizes for any inconvenience you may have experienced.
      • getAnnotationsPermission/setAnnotationsPermission : boolean 

        boolean getAnnotationsPermission() / setAnnotationsPermission(value)
        
        Indicates whether to allow to add or modify text annotations, fill in interactive form fields. if ModifyDocumentPermission is also set, create or modify interactive form fields (including signature fields).
      • getFillFormsPermission/setFillFormsPermission : boolean 

        boolean getFillFormsPermission() / setFillFormsPermission(value)
        
        Indicates whether to allow to fill in existing interactive form fields (including signature fields), even if ModifyDocumentPermission is clear.
      • getExtractContentPermission/setExtractContentPermission : boolean 

        boolean getExtractContentPermission() / setExtractContentPermission(value)
        
        Indicates whether to allow to copy or otherwise extract text and graphics from the document by operations other than that controlled by AccessibilityExtractContent.
      • getAccessibilityExtractContent/setAccessibilityExtractContent : boolean 

        boolean getAccessibilityExtractContent() / setAccessibilityExtractContent(value)
        
        Indicates whether to allow to extract text and graphics (in support of accessibility to users with disabilities or for other purposes).
      • getAssembleDocumentPermission/setAssembleDocumentPermission : boolean 

        boolean getAssembleDocumentPermission() / setAssembleDocumentPermission(value)
        
        Indicates whether to allow to assemble the document (insert, rotate, or delete pages and create bookmarks or thumbnail images), even if ModifyDocumentPermission is clear.
      • getFullQualityPrintPermission/setFullQualityPrintPermission : boolean 

        boolean getFullQualityPrintPermission() / setFullQualityPrintPermission(value)
        
        Indicates whether to allow to print the document to a representation from which a faithful digital copy of the PDF content could be generated. When it is clear (and PrintPermission is set), printing is limited to a low level representation of the appearance, possibly of degraded quality.