Skip to main content
Participating Frequently
September 28, 2018
Answered

Creating Click-Thru (aka Click-Wrap) PDFs in Acrobat DC

  • September 28, 2018
  • 3 replies
  • 7642 views

I need to create a click-thru document in Acrobat DC. It'll be a standard click-thru kind of document: someone opens the PDF and a dialog box appears that says some version of "You must agree to the following terms by clicking Yes to continue. If you click No, the document will close." When they click Yes, the document appears and they can continue; if they click No, the document closes. Basic stuff.

Rick Borstein wrote an excellent guide showing how to do this, but it was Acrobat in 2009. Creating a Click-thru Agreement in a PDF  It contains the JS code (which still works correctly, based on the results of opening his sample PDF) and well-written instructions, but I don't know where to go in Acrobat DC to do the same things. I've not found a similar set of instructions for this version.

Can anyone point me to current instructions or possibly update the instructions ("when it says go here, you actually want to go there and then do this thing").

Thanks in advance!

Yours truly,

John Hedtke

This topic has been closed for replies.
Correct answer try67

Those instructions should still work now, but I would do it a bit differently. If you put the code under the Page Open action of the first page the alert will appear each time you scroll to that, even after the first time when opening the file, which might be a bit annoying.

I would place the code as a doc-level script, which means it will only be executed when the file is first opened.

To do that go to Tools - JavaScript - Document JavaScripts (you might have to search for the latter in Acrobat DC), and then create a new item there, let's call it "Scripts". Delete all the default code that's generated and paste the code you've written based on the tutorial.

Save the file and you're done.

3 replies

Participant
October 7, 2022

Hello,

 

the file with the instructions is not longer available. Can someone please kindly post the original code if available? 

 

Thank you and best regards

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
September 28, 2018

Those instructions should still work now, but I would do it a bit differently. If you put the code under the Page Open action of the first page the alert will appear each time you scroll to that, even after the first time when opening the file, which might be a bit annoying.

I would place the code as a doc-level script, which means it will only be executed when the file is first opened.

To do that go to Tools - JavaScript - Document JavaScripts (you might have to search for the latter in Acrobat DC), and then create a new item there, let's call it "Scripts". Delete all the default code that's generated and paste the code you've written based on the tutorial.

Save the file and you're done.

Participant
February 7, 2020

Hello, everyone.

 

I've been trying to do the same. However, the instructions seem a bit outdated with regards to the current layout of today's Adobe Acrobat Pro DC. I'm sure the code should still work. I've managed to find the script under More Tools > Javascript > All Javascripts and I've pasted on to the target document under the same location but nothing happens.

 

Forgive my lack of knowledge in coding.

 

I'd really appreciate any further knowledge regarding this as I cannot seem to find more literature on the Internet regarding this.

 

My goal is to create a click-agreement that would open or close a pdf document.

 

Thanks in advance.

Participant
February 8, 2020

Hello, again.

 

Please disregard my previous post. I've realized the error of my ways. Haha!

 

I've now posted the script on to All Javascripts and is now working exactly as how you guys described it.

 

Thanks for this very useful bit of information.

Bernd Alheit
Community Expert
Community Expert
September 28, 2018

No need to change the instructions. You can follow the instructions in Adobe Acrobat DC.