Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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...
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Thank you so much!
Copy link to clipboard
Copied
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!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now