Announcement

Collapse
No announcement yet.

Document Javascript

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Document Javascript

    Hello gents,
    I have a pdf that has a form I am editing in the Foxit activex control. There is a document javascript in there containing a function - in this case CheckMandatoryFields() . It's embedded in a winforms/c# app and I am trying to use the RunJScript("CheckMandatoryFields();") method to call this function on click of a button, but nothing is happening. RunJScript("app.alert("Hello");") works fine. Any ideas?

    ​Cheers



  • #2
    Dear Cloughie,

    The RunJScript does not have the scope of the JavaScript function within the PDF. Only the standard JavaScript that are defined by Adobe are supported by the RunJScript function.

    Sincerely,
    Huy

    Comment

    Working...
    X