public class PdfSecurityOptions
extends java.lang.Object
| Constructor and Description |
|---|
PdfSecurityOptions()
The constructor of PdfSecurityOptions
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAccessibilityExtractContent()
Permission to copy or extract content (in support of accessibility to disabled users or for other purposes).
|
boolean |
getAnnotationsPermission()
Permission to comment on the document.
|
boolean |
getAssembleDocumentPermission()
Permission to insert, rotate, or delete pages and create bookmarks or thumbnail images even if ModifyDocumentPermission is not set.
|
boolean |
getExtractContentPermission()
Permission to copy or extract content.
|
boolean |
getExtractContentPermissionObsolete()
Permission to copy or extract content Obsoleted according to PDF reference.
|
boolean |
getFillFormsPermission()
Permission to fill the form fields.
|
boolean |
getFullQualityPrintPermission()
Permission to print in high quality.
|
boolean |
getModifyDocumentPermission()
Permission to modify pdf document
|
java.lang.String |
getOwnerPassword()
Gets the owner password of the document
|
boolean |
getPrintPermission()
Permission to print pdf document
|
java.lang.String |
getUserPassword()
Gets the user password
|
void |
setAccessibilityExtractContent(boolean value)
Permission to copy or extract content (in support of accessibility to disabled users or for other purposes).
|
void |
setAnnotationsPermission(boolean value)
Permission to comment on the document.
|
void |
setAssembleDocumentPermission(boolean value)
Permission to insert, rotate, or delete pages and create bookmarks or thumbnail images even if ModifyDocumentPermission is not set.
|
void |
setExtractContentPermission(boolean value)
Permission to copy or extract content.
|
void |
setExtractContentPermissionObsolete(boolean value)
Permission to copy or extract content Obsoleted according to PDF reference.
|
void |
setFillFormsPermission(boolean value)
Permission to fill the form fields.
|
void |
setFullQualityPrintPermission(boolean value)
Permission to print in high quality.
|
void |
setModifyDocumentPermission(boolean value)
Permission to modify pdf document
|
void |
setOwnerPassword(java.lang.String value)
Sets the owner password of the document
|
void |
setPrintPermission(boolean value)
Permission to print pdf document
|
void |
setUserPassword(java.lang.String value)
Sets the user password
|
public PdfSecurityOptions()
Example
The following code sets hight resolution print permisson for the output pdf.
Workbook wb = new Workbook();
wb.getWorksheets().get(0).getCells().get("A1").setValue("Aspose");
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
PdfSecurityOptions pdfSecurityOptions = new PdfSecurityOptions();
//set owner password
pdfSecurityOptions.setOwnerPassword("YourOwnerPassword");
//set user password
pdfSecurityOptions.setUserPassword("YourUserPassword");
//set print permisson
pdfSecurityOptions.setPrintPermission(true);
//set high resolution for print
pdfSecurityOptions.setFullQualityPrintPermission(true);
pdfSaveOptions.setSecurityOptions(pdfSecurityOptions);
wb.save("output.pdf", pdfSaveOptions);
public java.lang.String getUserPassword()
public void setUserPassword(java.lang.String value)
public java.lang.String getOwnerPassword()
public void setOwnerPassword(java.lang.String value)
public boolean getPrintPermission()
public void setPrintPermission(boolean value)
public boolean getModifyDocumentPermission()
public void setModifyDocumentPermission(boolean value)
public boolean getExtractContentPermissionObsolete()
public void setExtractContentPermissionObsolete(boolean value)
public boolean getAnnotationsPermission()
public void setAnnotationsPermission(boolean value)
public boolean getFillFormsPermission()
public void setFillFormsPermission(boolean value)
public boolean getExtractContentPermission()
public void setExtractContentPermission(boolean value)
public boolean getAccessibilityExtractContent()
public void setAccessibilityExtractContent(boolean value)
public boolean getAssembleDocumentPermission()
public void setAssembleDocumentPermission(boolean value)
public boolean getFullQualityPrintPermission()
public void setFullQualityPrintPermission(boolean value)
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2001-2023. All Rights Reserved.