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

Problem with security rights in Acrobat Reader

daniele.ladelfa
Registered: Aug 28 2008
Posts: 9

Hi,
I have found problems in managing the security rights in Acrobat Reader.

I added one text field and two buttons into my form:
- a text field named TextField;
- a button named ImportButton;
- another button named ExportButton.

Into ImportButton MouseUp event I have inserted:
xfa.host.importData("");
Into ExportButton MouseUp event I have inserted:
xfa.host.exportData("", 0);
I open this file with Adobe Acrobat Pro Extended 9 and I clicked on
[i]Advanced > Extend Features in Adobe Reader[/i]
and confirmed on [i]Save Now[/i].

Now, why if I open this file with Adobe Acrobat 9 Pro the buttons work correctly, but if I use Adobe Reader the ImportButton and ExportButton don't work?

Looking for information on the [url]acrobatusers.com[/url] I have found examples in pdf format where the Import and Export buttons work perfectly ([url=http://www.acrobatusers.com/gallery/forms_gallery/gallery_assets/forms0007/Andy_Meyers_hud1_forms.pdf]this[/url]).

What's wrong?

I tried also with the Trusted Functions, but nothing...

Any suggestion?

Thanks, Daniel

George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
When I tried the file you linked to with Reader 9.0.0, the Export button gives an error, but the Import button prompts to select a file. I did not import a file to see if it actually works though. It's not clear to me what method that Import button uses since the file is secured. The Export button does use the exportData method though.

When you enable the form with Acrobat, the Import and Export form usage rights cannot be set, as they can be with LiveCycle Reader Extensions. The sample file you linked to appears to have been enabled using Acrobat. It does not have Import or Export form usage rights applied.

George
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Just an FYI George,

In that example file the export button does not work b/c it is missing a ; while the OP did use one in her code.

Dimitri
WindJack Solutions
www.windjack.com
www.pdfscripting.com
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Interesting.

So can anyone confirm that importData and exportData can work (i.e., export form data locally) given the following:

1. XFA form that has been enabled with Acrobat (i.e., no Import/Export form usage rights applied)

2. Reader

If so, can you post a sample?

George
daniele.ladelfa
Registered: Aug 28 2008
Posts: 9
Hi,
I have discovered why my ImportButton doesn't work.
I started my work by LiveCycle Designer instead [url=http://www.acrobatusers.com/gallery/forms_gallery/gallery_assets/forms0007/Andy_Meyers_hud1_forms.pdf]this[/url] file is started by Acrobat.

Starting a new file from Acrobat, the Security Document Restrictions Summary are different.

These below are my Security Document Restrictions Summary characteristics:
Printing: AllowedChanging the Document: Not AllowedDocument Assembly: Not AllowedContent Copying:AllowedContent Copying for Accessibility: AllowedPage Extracion: Not AllowedCommenting: AllowedFilling of form fields: AllowedSinging: AllowedCreation of Template Pages: Not Allowed

Now, I discovered why ImportButton not working, but I still have a problem on the ExportButton.

It could be for the "Page Extracion: Not Allowed" line?
If the answer is "Yes", how can I resolve this problem?

Daniel
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
That file that you provided a link for was created in LiveCycle Designer. I tried creating a similar form in Acrobat 9 and LiveCycle Designer, and get the same results as you. When using Reader with a document that has been Reader-enabled, it allows the Import action (using importXFAData), but not the Export action (using exportXFAData, or any other export data methods).

I believe this is a usage rights issue, as opposed to a standard security issue. Acrobat does not (and cannot) apply the Export form usage right. For some reason, Reader allows importing data even though the Import form usage right is not applied when a document is Reader-enabled with Acrobat.

George