I've been searching a lot about this question. If I understand well, it seems possible to allow Adobe Reader to importData just by "Reader Extending" the form.
I did it in Adobe Pro-9.3 by doing:
Advanced > Extend Features in Adobe Reader ...> 'Save Now'.
But I still get the Error
NotAllowedError : Security Settings prevent access to this property or method
even in Adobe Pro. If I don't "Reader Extend" the pdf forms, I can importData in Adobe Pro.
Can anybody tell if I can allow my form to importData in Adobe Reader ?
Thanks a lot,
You do not need to Reader Extend to allow for a data import. But my guess is that you are nameing the file that needs to be imported a
nd that is what is causing the error. Acrobat/Reader wil not let you do an automatic operation like that unless the
script is running as a privelidged command. You can use the xfa.host.importData() without a paramater and a dialog will come up and allow the user to select a file. Note that by default an XDP extension will be require. If you have an XML file you want to load then the command woudl be:
Hope that helps
thanks a lot for your very quick answer.
I was indeed using xfa.host.importData() without any argument (as I thought I should) so that a file dialog pops up.
It's the only method which works out in LiveCycle and Adobe Pro, without Reader Extend.
I've just tried out your method with no result sadly!
Thanks for your help,
Sorry I messed up ...I gave you the exportData syntax ....importData only allows one paramater (the filename) ...so you should be using
Is that working for you?
But no!, xfa.host.importData(); doesn't work... Only in LiveCycle and Adobe Pro without using the Advanced>Reader extension.
So no way to make it work in Adobe Reader, though it might be possible nevertheless. I missed out something somewhere...
Sorry my mistake ...it will work if you Reader Extend using the server product .....it will not work if you Reader Extend using Acrobat (this is a subset of the server product). The server has an import/export form data right that can be set. When I turned that in it worked fine in reader. I assume that you do not have the server product....right?
>Sorry my mistake ...it will work if you Reader Extend using the server product .....it will not work if you Reader Extend using Acrobat (this is a subset of >the server product). The server has an import/export form data right that can be set. When I turned that in it worked fine in reader. I assume that you do >not have the server product....right?
Mmh, your are quite right, I only have Acrobat Pro... I don't think I' can make my public institute buy the full server version! So no hope in this direction!
Thanks a lot for your help and sorry for misleading you with a lack of info at the beginning.
sorry for replying once again on this topic. But I want to make it clear: is there any mean to reload in Adobe Reader the xml content of a a form, filled with the same "Reader" form, the xml content being sent by mail? If not, what are the solutions to load the form info into pdf?