Skip to main content
Participant
August 29, 2018
Question

Modify visibility of PDF elements dynamically

  • August 29, 2018
  • 1 reply
  • 447 views

I have a vanilla PDF with several sections, the structure may be something like this:

  1. Introduction
  2. Section 1
  3. Section 2
  4. Section ...

In every section, there is a button that is supposed to unlock (make visible) the next section. I have tried using interactive PDF's placing a block over the sections and hiding them when the button is clicked, however when I close the document the state is lost and everything is hidden again.

I have tough about somehow using the Acrobat JavaScript API to accomplish this task, but I don't know if it's possible. Any idea is very welcome.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
August 29, 2018

There's no reason for it to go back to the original state, if set up correctly.

Please explain what you did, and maybe post the script (or better yet, the actual file), and we'll be able to help you further with this.

I'm also moving this question to the Acrobat JavaScript forum, as it's not really related to the Acrobat SDK, where you posted it.