PdfSecurityOptions

PdfSecurityOptions constructor

PdfSecurityOptions 的构造函数

public PdfSecurityOptions()

例子

以下代码设置输出pdf的高分辨率打印权限。

Workbook wb = new Workbook();
wb.Worksheets[0].Cells["A1"].Value = "Aspose";

PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();


PdfSecurityOptions pdfSecurityOptions = new PdfSecurityOptions();

//设置所有者密码
pdfSecurityOptions.OwnerPassword = "YourOwnerPassword";

//设置用户密码
pdfSecurityOptions.UserPassword = "YourUserPassword";

//设置打印权限
pdfSecurityOptions.PrintPermission = true;

//设置打印的高分辨率
pdfSecurityOptions.FullQualityPrintPermission = true;


pdfSaveOptions.SecurityOptions = pdfSecurityOptions;

wb.Save("output.pdf", pdfSaveOptions);

也可以看看