These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Encrypt pdf when 'Save As' is selected

gotmerit55
Registered: Jun 14 2006
Posts: 25
Answered

How do I set a Pdf file to encrypt random parts of file when 'Save As' is selected? My goal is to allow user to read but not save or copy pdf file in a readable format when sent in an e-mail. I received a pdf file created in NitroPro that does this.

My Product Information:
Acrobat Pro 8.1.7, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
With Acrobat Pro you can apply different types of security to a PDF. Look on the Security Tab on the Document Properties dialog. Use the "File > Properties..." menu item.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.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

gotmerit55
Registered: Jun 14 2006
Posts: 25
I have tried this route prior but am unable to set the parameters I require: Encrypt random upon saving; no copy of text.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Acrobat encrypts the entire document. It doesn't do it randomly. This must be a special feature of Nitro.

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.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

gotmerit55
Registered: Jun 14 2006
Posts: 25
Thank you Thom. To follow up on your last answer (encoding) is there a way to make a file un-savable? I want to share it to my employee but protect the data from being stolen in the event the employee leaves.

I would like to create a pdf file the recepient could read only.

I would also want to prevent passing on that same pdf data file if possible.

Or, any way to encode the file so it won't open after so many attempts? As in opening 6 times, then the file won't open.

Does Acrobat Pro 9 have any more securities that might address this than 8.1.7? Again, thank you.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The only way to get really good protection on the file is to use something akin to the Adobe Policy server.

But you can implement a very simple scheme with JavaScript. For example you can place JavaScript in a document level script that checks the date and will automatically close the file if a target date is past. That sort of thing. But even if the file is password protected, someone who knew what they were doing could defeat it.

Here's an example that is a bit more fool proof, but it's still only shallow protection, scroll down on the page and select the License Dialog example:
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.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Don't think that is a possibility. Acrobat JavaScript is mostly concerned with what's going on in the Acrobat environment. It's sandboxed for security so there is very little of the DOM for external communication, and what little there is of that is very basic.

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.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script