PdfDocumentActions

data class PdfDocumentActions(val willClose: PdfAction? = null, val willSave: PdfAction? = null, val didSave: PdfAction? = null, val willPrint: PdfAction? = null, val didPrint: PdfAction? = null, val raw: PdfDictionary)

The scripts a document runs at the moments of its own life, from the catalog's /AA dictionary (ISO 32000-1 §12.6.3, Table 197).

A form uses these to warn before printing, or to stamp a save date into a field. Each entry is null when the document does not define that trigger.

Constructors

Link copied to clipboard
constructor(willClose: PdfAction? = null, willSave: PdfAction? = null, didSave: PdfAction? = null, willPrint: PdfAction? = null, didPrint: PdfAction? = null, raw: PdfDictionary)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

/DP: the document has been printed.

Link copied to clipboard

/DS: the document has been saved.

Link copied to clipboard

True when the dictionary defined no trigger this type knows.

Link copied to clipboard

The raw /AA dictionary.

Link copied to clipboard

/WC: the document is about to close.

Link copied to clipboard

/WP: the document is about to be printed.

Link copied to clipboard

/WS: the document is about to be saved.