I haven't found a way to do this with any standard settings thru Livecycle 8 or Acrobat Pro 9, so I'm hoping for a solution with javascript.
Ideally I want to, in some way, prevent user data in a pdf from being emailed. Naturally the form is designed without an email submit button. Extended reader right must be enabled to allow the user to complete the fields on screen. My problem is preventing the user from sending the form data by using the email button on the reader TOOLBAR.
I found an old post on Adobe's Developers Knowledgebase board (for Acrobat 5):
------------------------------------------------------------------------------------------
How To: Remove or hide Acrobat toolbars from an external Acrobat window
Summary
An effective way is to open a PDF file on a browser window without Acrobat toolbars is to add #toolbar=0 to the HTML http code.
Issue
How do I display a pdf in the browser while hiding the Acrobat toolbar?
Solution
Generally, there are functions/properties to remove or hide Acrobat toolbars or tool buttons through plug-ins, Windows OLE, Apple Event, and JavaScript. For example, Acrobat document-level JavaScript provides a convenient way to remove tool buttons using the following code:
app.hideToolbarButton("ButtonName");
However, hiding the toolbar through the Open Options in Acrobat will only hide the toolbar if the PDF does not work with the web browser. In order to open a PDF file in a web browser, without the Acrobat or Acrobat Reader toolbar, you would need to link to the PDF with the following HTML code, where #toolbar=0 follows the .pdf filename:
For both IE and Netscape (i.e, 4.7), the syntax #toolbar=0 should work. The syntax '#toolbar=false' works in IE 5.5 sp2 on Windows 2000.
------------------------------------------------------------------------------------------
I tried both and they don't work for the current reader versions. (at least not for me)
Can a script be written which will do any of the following ... :
[first choice] disable (or gray out) the toolbar email button?
[second choice] automatically clear all data fields before the pdf is emailed? (some kind of "clear form" function invoked when the toolbar email button is clicked)
[third choice] automatically perform a redaction of form fields when the toolbar email button is clicked?
[fourth choice] replace the completed pdf form with a dummy blank form (or subform) when the toolbar email button is clicked, so only the dummy form is emailed in its place?
As I know next to nothing about javascript, I hope someone can help me out of a tight jam. Thanks.
Why do you need to extend the form with Reader Rights? The user can fill out any form and print it without these rights. Enabling is only needed to save the form locally, which means the user could just attach it to an email in the ordinary way and there's nothing you can do in Acrobat to stop this. Alternativley, if rights are not applied to the PDF they can still fill it out but can't save or email the data.
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