Document.Actions property

Gets document actions. This property is instance of DocumentActions class which allows to get/set BeforClosing, BeforSaving, etc. actions.

public DocumentActionCollection Actions { get; }


This example demonstrates how to obtain after open action of the document:

Aspose.Pdf.Document document = new Aspose.Pdf.Document("d:\\work\\aspose\\\\trunk\\testdata\\Aspose.Pdf\\PdfWithOpenAction.pdf");
Aspose.Pdf.Annotations.DocumentActionCollection actions = document.Actions;
Aspose.Pdf.Annotations.PdfAction afterSavingAction = actions.AfterSaving;

See Also