• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Mistake in JavaScript reference guide example

New Here ,
Dec 05, 2017 Dec 05, 2017

Copy link to clipboard

Copied

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.

TOPICS
Acrobat SDK and JavaScript

Views

470

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 05, 2017 Dec 05, 2017

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

Votes

Translate

Translate
Community Expert ,
Dec 05, 2017 Dec 05, 2017

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 05, 2017 Dec 05, 2017

Copy link to clipboard

Copied

It'll never get fixed

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 05, 2017 Dec 05, 2017

Copy link to clipboard

Copied

LATEST

I wrote it because hoped someone responsible

could report this and it'll be corrected,

sad

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines