Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How can I print just the hidden pages within a form?

New Here ,
Mar 20, 2023 Mar 20, 2023

I am new to using and editing PDF format, but it has been going pretty well so far. However, please provide simple instructions if what I am trying to do is possible. 

First, I created a four-page form (from scratch) in Adobe Acrobat Pro (32-bit). 

I want to be able to hide the last two pages from the individuals completing the form but be able to just print the last two-(hidden)-pages. Is this possible?

If further explanation is needed, please let me know. Once again, I'm on the newer side of using Adobe Acrobat Pro (32-bit), so I know my explanation might be too simple. 

TOPICS
Create PDFs , How to , PDF forms , Print and prepress
1.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Mar 24, 2023 Mar 24, 2023

If they have Acrobat it's much easier. You just need to change the value of the hidden property of the Templates, like this:

 

this.getTemplate("Template1").hidden = false; // make it visible

this.getTemplate("Template2").hidden= true; // make it hidden

 

EDIT: Sorry, I accidentally wrote visible instead of hidden in the second line of code. Fixed now.

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 20, 2023 Mar 20, 2023

Is this file going to be used only in Acrobat, or also in the free Reader?

If the former, you can define all pages as Templates and then use a script to hide the first two ones and show the last two when a button is clicked, then print the file, then revert the pages back to their original state.

If the latter it's more complicated, as you'll need to hide all the pages, then spawn copies from them so that you could later on delete them when you want to print the file, then re-spawn them...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 21, 2023 Mar 21, 2023

First, thank you try67, I have read some of your responses (from other posts) while creating this document.

Most likely used with Acrobat.

I have previously made all the pages into individual templates based on a different posting. 

Also, I have the last two pages populating data from the first two pages (as the individuals are completing the form). 

Hiding them, could the last two pages be hidden, via a script, when the document is opened? And unhidden when the submit button is clicked? My only concern is that while the last two pages are hidden the data wouldn't populate in them before the document is sent. I apologize if my explanation is wordy and I hope that it makes sense. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 21, 2023 Mar 21, 2023

Copying data to the hidden fields should still work, I think, but if the file is going to be used by anyone who doesn't have Acrobat then you need to use the latter approach, and that is quite complicated to implement.

 

And you're welcome!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 24, 2023 Mar 24, 2023

Everyone in the company has Acrobat, so I would hope that would be the program they will use. 

Okay, how would I go about structuring the script and linking it to a button? 

I think I would like to use an action to hide the templates and recover them when another button is clicked, but I don't know how to do either. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 24, 2023 Mar 24, 2023

If they have Acrobat it's much easier. You just need to change the value of the hidden property of the Templates, like this:

 

this.getTemplate("Template1").hidden = false; // make it visible

this.getTemplate("Template2").hidden= true; // make it hidden

 

EDIT: Sorry, I accidentally wrote visible instead of hidden in the second line of code. Fixed now.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 24, 2023 Mar 24, 2023

Thank you so much!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 28, 2023 Mar 28, 2023
LATEST

Sorry, I don't know how to edit my previous comment. 

Unfortunately, I could not get that to work, but I created a checkbox (very small and where no one would click on it, even by accident) and used the same code, had the setting as initially clicked (or on) and it worked out perfectly. Even in my test runs it worked great. Thank you so much! 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines