Gets document actions. This property is instance of DocumentActions class which allows to get/set BeforClosing, BeforSaving, etc. actions.
Namespace: Aspose.PdfAssembly: Aspose.PDF (in Aspose.PDF.dll) Version: 21.1
Syntaxpublic DocumentActionCollection Actions { get; }
Public ReadOnly Property Actions As DocumentActionCollection
Get
public:
property DocumentActionCollection^ Actions {
DocumentActionCollection^ get ();
}
member Actions : DocumentActionCollection with get
Property Value
Type:
DocumentActionCollection
Examples
This example demonstrates how to obtain after open action of the document:
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;
See Also