Hey everyone,
I have the following requirement:
1) A customer receives a password protected PDF
2) They enter in their password and then get a second dialog saying "to view this you must accept the terms and conditions...etc...etc..."
3) User clicks ok and the PDF is viewable..
my solution to this is to, on the PDF being opened to add a layer with javascript which basically hides the contents of the PDF - if they click cancel, I simply do not remove it...
so my questions are..
1) does anyone have any sample code to add a full page layer in this respect, I have found watermark code, but nothing else so far...
2) can I add layers which span multiple pages?
Thanks for the help
Take a look at this article:
http://www.acrobatusers.com/tutorials/2006/create_use_layers
And the License Dialog sample file on this page:
http://www.windjack.com/products/acrodialogs.php
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Then most important JavaScript Development tool in Acrobat
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script