aspose.cells

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
functiongetAccessibilityExtractContent()
function
           Indicates whether to allow to extract text and graphics (in support of accessibility to users with disabilities or for other purposes).
functiongetAnnotationsPermission()
function
           Indicates whether to allow to add or modify text annotations, fill in interactive form fields.
functiongetAssembleDocumentPermission()
function
           Indicates whether to allow to assemble the document (insert, rotate, or delete pages and create bookmarks or thumbnail images), even if ModifyDocumentPermission is clear.
functiongetExtractContentPermission()
function
           Indicates whether to allow to copy or otherwise extract text and graphics from the document by operations other than that controlled by AccessibilityExtractContent.
functiongetExtractContentPermissionObsolete()
function
           Permission to copy or extract content Obsoleted according to PDF reference.
functiongetFillFormsPermission()
function
           Indicates whether to allow to fill in existing interactive form fields (including signature fields), even if ModifyDocumentPermission is clear.
functiongetFullQualityPrintPermission()
function
           Indicates whether to allow to print the document to a representation from which a faithful digital copy of the PDF content could be generated.
functiongetModifyDocumentPermission()
function
           Indicates whether to allow to modify the contents of the document by operations other than those controlled by AnnotationsPermission, FillFormsPermission and AssembleDocumentPermission.
functiongetOwnerPassword()
function
           Gets or sets the owner password for the encrypted PDF document.
functiongetPrintPermission()
function
           Indicates whether to allow to print the document.
functiongetUserPassword()
function
           Gets or sets the user password required for opening the encrypted PDF document.
 

    • Constructor Detail

      • PdfSecurityOptions

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

      • getUserPassword/setUserPassword : String 

        function getUserPassword() / function 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 

        function getOwnerPassword() / function 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 

        function getPrintPermission() / function 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 

        function getModifyDocumentPermission() / function 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 

        function getExtractContentPermissionObsolete() / function 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 

        function getAnnotationsPermission() / function 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 

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

        function getExtractContentPermission() / function 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 

        function getAccessibilityExtractContent() / function 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 

        function getAssembleDocumentPermission() / function 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 

        function getFullQualityPrintPermission() / function 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.