---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/DocumentActionCollection
---

# DocumentActionCollection

## Overview

`DocumentActionCollection` is a class in Aspose.PDF FOSS for .NET.

Document-level /AA additional-action dictionary (PDF 32000-1 §12.6.3 Table 195).

This class provides 1 method for working with DocumentActionCollection objects in .NET programs.
Available methods include: `DocumentActionCollection`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `AfterPrinting`, `AfterSaving`, `BeforeClosing`, `BeforePrinting`, `BeforeSaving`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `BeforeClosing` | `PdfAction?` | Read/Write | Triggered before the document is closed (/AA /WC). |
| `BeforeSaving` | `PdfAction?` | Read/Write | Triggered before the document is saved (/AA /WS). |
| `AfterSaving` | `PdfAction?` | Read/Write | Triggered after the document is saved (/AA /DS). |
| `BeforePrinting` | `PdfAction?` | Read/Write | Triggered before the document is printed (/AA /WP). |
| `AfterPrinting` | `PdfAction?` | Read/Write | Triggered after the document is printed (/AA /DP). |

## Methods

| Signature | Description |
|-----------|-------------|
| `DocumentActionCollection(document: Document)` | Calls DocumentActionCollection on this DocumentActionCollection instance. |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)