3 Replies Latest reply on Dec 5, 2017 11:24 PM by kostiantynr81959832

    Mistake in JavaScript reference guide example

    kostiantynr81959832

      I've detected mistake, or at least I think so, in JavaScript™ for Acrobat® API Reference latest version,

      page 258 - Doc properties - templates -

      Example

      List all templates in the document.

      var t = this.templates for ( var i=0; i < t.length; i++) {

      var state = (t[i].hidden) ? "visible" : "hidden"

      console.println("Template: \"" + t[i].name + "\", current state: " + state);

      }

      " var state = (t[i].hidden) ? "visible" : "hidden" " here "visible" and "hidden" are mixed up.

      not much a mistake, but I really got confused.