Class CPDFDocumentPermissionInfo

java.lang.Object
com.compdfkit.core.document.CPDFDocumentPermissionInfo

public class CPDFDocumentPermissionInfo extends Object
File permission related class includes whether to allow printing, modifying and so on.
  • Method Details

    • isAllowsPrinting

      public boolean isAllowsPrinting()
      Whether to allow printing.
      Returns:
      Whether to allow printing.
    • setAllowsPrinting

      public void setAllowsPrinting(boolean allows)
      Set whether to allow printing.
      Parameters:
      allows - whether to allow printing.
    • isAllowsHighQualityPrinting

      public boolean isAllowsHighQualityPrinting()
      Whether to allow high-quality printing.
      Returns:
      Returns whether to allow high-quality printing.
    • setAllowsHighQualityPrinting

      public void setAllowsHighQualityPrinting(boolean allow)
      Set whether to allow high-quality printing.
      Parameters:
      allow - whether to allow high-quality printing.
    • isAllowsCopying

      public boolean isAllowsCopying()
      Whether to allow copying of content to the Pasteboard.
      Returns:
      Returns whether to allow copying of content to the Pasteboard.
    • setAllowsCopying

      public void setAllowsCopying(boolean allow)
      Set whether to allow copying of content to the Pasteboard.
      Parameters:
      allow - whether to allow copying of content to the Pasteboard.
    • isAllowsDocumentChanges

      public boolean isAllowsDocumentChanges()
      Whether to allow document changes.
      Returns:
      Returns whether to allow document changes.
    • setAllowsDocumentChanges

      public void setAllowsDocumentChanges(boolean allow)
      Set whether to allow document changes.
      Parameters:
      allow - whether to allow document changes.
    • isAllowsDocumentAssembly

      public boolean isAllowsDocumentAssembly()
      Whether to allow to manage a document by inserting, deleting, and rotating pages.
      Returns:
      Returns whether to allow document assembly.
    • setAllowsDocumentAssembly

      public void setAllowsDocumentAssembly(boolean allow)
      Set whether to allow document assembly.
      Parameters:
      allow - whether to allow document assembly.
    • isAllowsCommenting

      public boolean isAllowsCommenting()
      Whether to allow creating or modifying document annotations, including form field entries.
      Returns:
      Returns whether to allow commenting.
    • setAllowsCommenting

      public void setAllowsCommenting(boolean allow)
      Set whether to allow commenting.
      Parameters:
      allow - whether to allow commenting.
    • isAllowsFormFieldEntry

      public boolean isAllowsFormFieldEntry()
      Whether to allow modifying form field entries even if you can't edit document annotations.
      Returns:
      Returns whether to allow form field entry.
    • setAllowsFormFieldEntry

      public void setAllowsFormFieldEntry(boolean allow)
      Set whether to allow form field entry.
      Parameters:
      allow - whether to allow form field entry.
    • toString

      public String toString()
      Overrides:
      toString in class Object