PDF Automation Station

PDF Automation Station

Check Boxes That Show and Hide PDF Pages

Here's the scenario. You need to assemble a document from a list of pages. The selection is dependent upon different criteria. You would like to create one master document, but only show the pages

David Dagley's avatar
David Dagley
Dec 09, 2023
∙ Paid
4
Share

that are relevant to the specific criteria, which would be listed on a cover page next to check box fields.  An example is a new employee onboarding package with different positions, departments, and responsibilities.  Here's an outline of the project:

  • The document must function with Adobe Reader.

  • Before any selections are made, the document will appear as a 1-page PDF cover page with check boxes for different pages.

  • As the user selects different check boxes, the relevant pages will appear.

  • As the user unselects different check boxes, the pages connected to those check boxes will disappear.

  • Regardless of the order in which the check boxes are selected and unselected the pages displayed will maintain the same order as the check box list.

  • Each page will have a page number at the bottom of the page.  As pages are added and deleted the page numbers will be automatically updated to reflect their position in the pages that are displayed.

Here's a working example.  For simplicity the optional pages are visually labelled as Black, Blue, Green, and Red.

Page templates were used.  Here are some of the challenges:

  • Maintaining the page order when adding and deleting pages.

  • Updating the page numbers when adding and deleting pages.

  • Adobe Reader does not have the functionality to hide and show template pages, so they must be "spawned".

  • Adobe Reader can only delete pages if they were spawned from template pages in the same session.

Get the course above 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 writingGet the app
Substack is the home for great culture