AddPageLevelJavaScriptAction

Top  Previous  Next

 

[This method is new in  version 2.0 of Gnostice PDFtoolkit ActiveX/. NET Professional Edition]

 

This method adds page level JavaScript action to the PDF document.

 

Syntax

[VC++]

void AddPageLevelJavaScriptAction(LPDISPATCH Action, long TriggerType, long PageNo);

 

[CS]

public abstract new void AddPageLevelJavaScriptAction (  IgtPDFJavaScriptActionX Action ,  TxgtPageActionTriggers TriggerType ,  Int32 PageNo )

 

[VB]

Sub AddPageLevelJavaScriptAction(Action As gtPDFJavaScriptActionX, TriggerType As TxgtPageActionTriggers, PageNo As Long)

 

 

 

Parameter

   Action

      Specifies the JavaScript Action as gtPDFJavaScriptActionX object.

 

  TriggerType

       

       Specifies the event on which the JavaScript Action should take place. It take any one of the value from        TxgtPageActionTriggers enumeration.

 

Value

Description

aatBeforePageOpen

Action gets invoked before a page is opened.

aatAfterPageClose

Action gets invoked after the page is closed.

aatBeforeDocClose

Action gets invoked before the document is closed.

aatBeforeDocSave

Action gets invoked before the document is saved.

aatAfterDocSave

Action gets invoked after the document is saved.

aatBeforeDocPrint

Action gets invoked before the document is printed.

aatAfterDocPrint

Action gets invoked after the document is printed.

  PageNo

        Specifies the page number to which this action is added.