NotAlloweError

Jan 29, 2019

Copy link to clipboard

Copied

At work, I use Acrobat Standard XI. I use Javscript. My task is to create a PDF file which on the Acrobat Reader page will be able to hide or display an existing Template. I use: this.getTemplate (name) .hidden = false; this.getTemplate (name) .hidden = true; In AcrobatReader, NotAlloweError is displayed. My task is to create a PDF file for submitting applications. The structure of the document is such that depending on what I choose to display a specific Template. What I need to do to hide or display the template is to be possible on the AcrobatReader page

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

Reader can't hide or display Templates. What it can do, though is spawn a page from a Template object and then delete it, so you'll need to adjust your code to that, instead.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

70

Likes

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

NotAlloweError

Jan 29, 2019

Copy link to clipboard

Copied

At work, I use Acrobat Standard XI. I use Javscript. My task is to create a PDF file which on the Acrobat Reader page will be able to hide or display an existing Template. I use: this.getTemplate (name) .hidden = false; this.getTemplate (name) .hidden = true; In AcrobatReader, NotAlloweError is displayed. My task is to create a PDF file for submitting applications. The structure of the document is such that depending on what I choose to display a specific Template. What I need to do to hide or display the template is to be possible on the AcrobatReader page

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

Reader can't hide or display Templates. What it can do, though is spawn a page from a Template object and then delete it, so you'll need to adjust your code to that, instead.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

71

Likes

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
Jan 29, 2019 0
Most Valuable Participant ,
Jan 29, 2019

Copy link to clipboard

Copied

Reader can't hide or display Templates. What it can do, though is spawn a page from a Template object and then delete it, so you'll need to adjust your code to that, instead.

Likes

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
Reply
Loading...
Jan 29, 2019 0
Jan 29, 2019

Copy link to clipboard

Copied

Please. Send me easy example.

Likes

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
Reply
Loading...
Jan 29, 2019 0
Most Valuable Participant ,
Jan 29, 2019

Copy link to clipboard

Copied

Likes

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
Reply
Loading...
Jan 29, 2019 1
Most Valuable Participant ,
Jan 29, 2019

Copy link to clipboard

Copied

It is the job of the programmer to read and understand documentation of methods. Not every task can be solved with copy and paste, and asking for "examples" which really means "do my job for me, it is too much trouble".

Likes

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
Reply
Loading...
Jan 29, 2019 2