Package com.compdfkit.core.document
Class CPDFDocumentPermissionInfo
java.lang.Object
com.compdfkit.core.document.CPDFDocumentPermissionInfo
File permission related class includes whether to allow printing, modifying and so on.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether to allow creating or modifying document annotations, including form field entries.booleanWhether to allow copying of content to the Pasteboard.booleanWhether to allow to manage a document by inserting, deleting, and rotating pages.booleanWhether to allow document changes.booleanWhether to allow modifying form field entries even if you can't edit document annotations.booleanWhether to allow high-quality printing.booleanWhether to allow printing.voidsetAllowsCommenting(boolean allow) Set whether to allow commenting.voidsetAllowsCopying(boolean allow) Set whether to allow copying of content to the Pasteboard.voidsetAllowsDocumentAssembly(boolean allow) Set whether to allow document assembly.voidsetAllowsDocumentChanges(boolean allow) Set whether to allow document changes.voidsetAllowsFormFieldEntry(boolean allow) Set whether to allow form field entry.voidsetAllowsHighQualityPrinting(boolean allow) Set whether to allow high-quality printing.voidsetAllowsPrinting(boolean allows) Set whether to allow printing.toString()
-
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
-