Skip to main content
DiggaStewieJax
Participant
February 28, 2019
Answered

Show and hide pages via JavaScript API

Hi,

is it possible to show and hide pages in Adobe Acrobat using the JavaScript API? If so, how? I've been looking for a solution for two days, but I can't find one.

Thanks

This topic is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
February 28, 2019

Only if they are converted to a Template object.

4 replies

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
February 28, 2019

Only if they are converted to a Template object.

Translate
DiggaStewieJax
Participant
February 28, 2019

Do you mean a PDF template? How can I do that?

Translate
try67
Community Expert
Community Expert
February 28, 2019

Templates can be created using a script or via Tools - Document Processing - Page Templates.

Once created they can be shown or hidden via the same location, or again using a script.

An important note is that it will only work in Acrobat, not in Reader, where it's only possible to spawn pages from a Template and then delete those pages, not show/hide it directly.

Translate