Actions

Document.Actions property

Ottiene le azioni del documento. Questa proprietà è un’istanza della classe DocumentActions che permette di ottenere/impostare azioni BeforClosing, BeforSaving, ecc.

public DocumentActionCollection Actions { get; }

Esempi

Questo esempio mostra come ottenere un’azione dopo l’apertura del documento:

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;

Guarda anche