com.groupdocs.viewer.domain.options

Class PdfFileSecurity



  • public class PdfFileSecurity
    extends Object
    Enables to specify owner password, user password and PDF file permissions
    • Constructor Detail

      • PdfFileSecurity

        public PdfFileSecurity(String ownerPassword,
                       String userPassword,
                       int pdfFilePermissions)
        Creates new instance of this class
        Parameters:
        ownerPassword - Owner password enables to set document permissions
        userPassword - User password restricts opening PDF file
        pdfFilePermissions - PDF file permissions
    • Method Detail

      • getOwnerPassword

        public String getOwnerPassword()
        Owner password enables to set PDF file permissions
      • getPdfFilePermissions

        public int getPdfFilePermissions()
        PDF file permissions
      • getUserPassword

        public String getUserPassword()
        User password restricts opening PDF file