PDF Automation Station

PDF Automation Station

Check Boxes That Show and Hide PDF Layers

David Dagley's avatar
David Dagley
Dec 16, 2023
∙ Paid

In my last article I outlined how to show and hide PDF pages with check boxes by spawning hidden template pages.  In this article I'll describe how to show and hide PDF layers using check boxes as triggers. 

Challenges

  • The layer visibility must be set to Visible When On for a script to turn a layer on and off. 

  • Layers have a default state, either on or off.  When the PDF is opened the layer will revert to the default state.

  • Because the layer will revert to its default state when the document is opened, changing the state of the layer does not "dirty" the PDF, meaning it is not a change that will cause the save dialog ("Do you want to save changes to xx.pdf before closing?") to activate when the PDF is closed.

    Get the course above, and a suite of automation tools for FREE with a Professional subscription.

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2025 David Dagley
Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture