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
PdfNamethe action type
action
PdfActionthe 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
stringthe name of the destination to jump to
SetOpenAction(PdfAction)
When the document opens this action will be invoked.
void SetOpenAction(PdfAction action)
Parameters
action
PdfActionthe action to be invoked