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

Security Warning on submitForm() in folder level script

muggel_mail
Registered: Oct 28 2009
Posts: 9

Hello,

I am lost.

I encapsulated a submitForm() call in a trusted function in a folder level script to disable the security warning (The document is trying to connect to...). The trusted function is then called from a document level script.

If I add the corresponding code to the document open action by using Adobe Pro 9, save the document and run it, the form data is transmitted without raising the warning. This is exactly what I want.

If I add the same code to documents with the help of iText or PDFBox for some documents the warning pops up and for others not. This is strange because the folder level script and by that the code which calls submitForm() which raises the warning is the same for all documents.

Does anybody has an idea how to resolve this issue? Is it possible that the different behaviour has something to do with the pdf version of the document?

Or even better is there another way to disable the warning?

Thanks in advance,
Thomas.

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The submitForm() function does not require priviledge. The warning message is not related to this. The message should only appear if the document tries to access more than one external resource. So its the document that needs trust, not the function.

Acrobat 9 has at least 3 methods for providing this level of trust to the document, I'm probably missing another one.

1. Place the document in a trusted folder. Set from the "Security (Enhanced)" tab in the Acrobat Preferences dialog.
2. Digitally sign the PDF. It will then be trused on any computer that has the valid signature file.
3. Use a Cross-Platform file to setup the web site locations that are trusted for the document.

Here are a couple of relavant documents:
https://www.adobe.com/devnet/reader/articles/ reader_compatibility.php
http://learn.adobe.com/wiki/download/ attachments/52658564/ acrobat_crossdomainsecurity_9.x.pdf

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