Any way to add Terms and Conditions to a pdf page

Posted: 10-27-2008, 08:28 PM
What I would like to do is have a Terms and Conditions page that will only reveal the body of the pdf if the user accepts the terms and conditions.

If that isnt possible could I possibly send 2 pdf's one is a terms page that when accepted reveals a password to open the second password protected pdf?

Thanks in advance for the help!
Reply With Quote

Responses to "Any way to add Terms and Conditions to a pdf page"

graffiti
Guest
Posts: n/a
 
Re: Any way to add Terms and Conditions to a pdf page
Posted: 10-27-2008, 08:40 PM
Is it only going to be downloaded from a web site?

If so, I'd do that with the web page. Make them agree to terms before downloading the PDF.
Reply With Quote
George Johnson
Guest
Posts: n/a
 
Re: Any way to add Terms and Conditions to a pdf page
Posted: 10-27-2008, 09:23 PM
It depends on how secure it needs to be. For example, you could use JavaScript to control the visiblity of content (using layers, aka OCGs), but this cannot be considered secure. It may be sufficient though, considering your willingness to give out a password, which would also work.

For that latter, you could set up a button with the following JavaScript as the Mouse Up action:




var resp = app.alert("Do you accept the terms and conditions?", 2, 2);

// If the user clicked Yes...
if (resp === 4) {
app.alert("The password is: ABC-123", 3);
} else {
app.alert("Scram!", 1);
}




George
Reply With Quote
JAY MAC
Guest
Posts: n/a
 
Re: Any way to add Terms and Conditions to a pdf page
Posted: 10-27-2008, 09:27 PM
Thanks for the posts guys.

I came up with a workaround by making the terms page the PDF which has security to password protect attachments. I then attached the PDF file with the content. When the user clicks the I Agree button in the Terms PDF I have an action to make the password for the attachment visible.

Thanks again for the info though ill jot that down.
Reply With Quote
JAY MAC
Guest
Posts: n/a
 
Re: Any way to add Terms and Conditions to a pdf page
Posted: 10-29-2008, 05:20 PM
OK the workaround with securing the attachment works but its kinda clunky so I am trying out Georges suggestion with using layers. I brought in a solid colored layer to go over top of the content and what I want to do is after they accept the Terms the solid layer becomes invisible.

The problem I have now is that when I try to add a Set Layer Visibility action to a Mouse Up part of a button I get the error "The target layer states of the selected actions will be set to the current state."

Maybe i have to use javascript on the button instead?

Thanks in advance for your help!
Reply With Quote
George Johnson
Guest
Posts: n/a
 
Re: Any way to add Terms and Conditions to a pdf page
Posted: 10-29-2008, 06:48 PM
Here's some good information on controlling layers via javascript: <http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/create_use_layers/>

George
Reply With Quote
JAY MAC
Guest
Posts: n/a
 
Re: Any way to add Terms and Conditions to a pdf page
Posted: 10-29-2008, 07:02 PM
I looked at that page and tried to copy paste the line

var ocg = FindOCG(aLayers[this.inc]);
ocg.state = !ocg.state;

to my button Mouse Up action and modifying it with

var ocg = FindOCG("Cover");
ocg.state = !ocg.state;

That didnt work but im sure im doing something wrong.
Reply With Quote
George Johnson
Guest
Posts: n/a
 
Re: Any way to add Terms and Conditions to a pdf page
Posted: 10-29-2008, 07:41 PM
You need to read and understand the article. The FindOCG is a custom function that's intended to be placed in a document-level JavaScript. But for testing purposes you can place the function definition (the first bit of code presented in that article), just before the code you're using.

George
Reply With Quote
JAY MAC
Guest
Posts: n/a
 
Re: Any way to add Terms and Conditions to a pdf page
Posted: 10-29-2008, 07:47 PM
Ah ok ill give that a shot. Sorry for the ignorance, coding makes my head spin.
Reply With Quote
JAY MAC
Guest
Posts: n/a
 
Re: Any way to add Terms and Conditions to a pdf page
Posted: 10-29-2008, 08:58 PM
I found exactly what I wanted to do but using InDesign exported layers and the Set Layer Visibility action.

Here it is if anyone is interested <http://www.layersmagazine.com/acrobat-9-adding-layers-to-pdf-documents.html>

I wish I had the time to delve into coding but just dont have the time or patience.

Thanks to all for the help.
Reply With Quote
 
LinkBack Thread Tools Search this Thread Display Modes
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
verity search terms oak3 Coldfusion - Advanced Techniques 2 03-28-2005 05:54 PM
Terms Of Service BuG56 Macromedia Flash Sitedesign 1 04-03-2004 08:33 PM
Web terms & conditions verossa Macromedia Dreamweaver 0 07-20-2003 05:22 PM
Terms Bruno Desthuilliers PHP Development 0 06-28-2003 12:56 PM
What do these terms mean? Noons Oracle Server 7 01-11-2003 06:28 PM