【发布时间】:2018-03-22 13:24:47
【问题描述】:
我正在使用 Aspose 库来读取、打开和保存 pdf 文件。 我正在寻找从属性“AllowModifyContents”中获取 pdf 文件安全值的方法。
这是这样设置的:
using (var documenttosecure = new Aspose.Pdf.Document(inputFilePath))
{
using (var pdfOutput = new PdfFileSecurity(documenttosecure))
{
var docP = DocumentPrivilege.AllowAll;
docP.AllowPrint = true;
docP.AllowCopy = true;
docP.AllowModifyContents = false;
pdfOutput.SetPrivilege(docP);
documenttosecure.Save(outputFile);
}
}
现在我需要获取该 pdf 并从 pdf DocumentPrivilege 中找到属性 AllowModifyContents。
你知道如何读取那个属性值吗?
感谢您的帮助; 塞尔吉奥
【问题讨论】: