Actions
Document.Actions property
获取文档操作。此属性是 DocumentActions 类的实例,它允许获取/设置 BeforClosing、BeforSaving 等操作。
public DocumentActionCollection Actions { get; }
例子
这个例子演示了如何在打开文件后获取:
Aspose.Pdf.Document document = new Aspose.Pdf.Document("d:\\work\\aspose\\aspose.pdf.kit.net.new\\trunk\\testdata\\Aspose.Pdf\\PdfWithOpenAction.pdf");
Aspose.Pdf.Annotations.DocumentActionCollection actions = document.Actions;
Aspose.Pdf.Annotations.PdfAction afterSavingAction = actions.AfterSaving;
也可以看看
- class DocumentActionCollection
- class Document
- 命名空间 Aspose.Pdf
- 部件 Aspose.PDF