Skip to main content
Participant
December 5, 2017
Answered

Mistake in JavaScript reference guide example

  • December 5, 2017
  • 2 replies
  • 930 views

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.hidden) ? "visible" : "hidden"

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

}

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

not much a mistake, but I really got confused.

This topic has been closed for replies.
Correct answer try67

Well spotted. It's not the only one, I can assure you...

2 replies

Thom Parker
Community Expert
Community Expert
December 5, 2017

It'll never get fixed

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
December 6, 2017

I wrote it because hoped someone responsible

could report this and it'll be corrected,

sad

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
December 5, 2017

Well spotted. It's not the only one, I can assure you...