Table of Contents

Interface IPdfDocumentActions

Namespace
iTextSharp.text.pdf.interfaces
Assembly
iTextSharp.LGPLv2.Core.dll

A PDF document can have an open action and other additional actions.

public interface IPdfDocumentActions

Methods

SetAdditionalAction(PdfName, PdfAction)

Additional-actions defining the actions to be taken in response to various trigger events affecting the document as a whole. The actions types allowed are: DOCUMENT_CLOSE , WILL_SAVE , DID_SAVE , WILL_PRINT and DID_PRINT . @throws DocumentException on invalid action type

void SetAdditionalAction(PdfName actionType, PdfAction action)

Parameters

actionType PdfName

the action type

action PdfAction

the action to execute in response to the trigger

SetOpenAction(string)

When the document opens it will jump to the destination with this name.

void SetOpenAction(string name)

Parameters

name string

the name of the destination to jump to

SetOpenAction(PdfAction)

When the document opens this action will be invoked.

void SetOpenAction(PdfAction action)

Parameters

action PdfAction

the action to be invoked