Donnez vie à vos documents numériques !
 

Répondre à : XML pour remplir un multi-formulaire.

abracadabraPDF Forums PDF – Général XML pour remplir un multi-formulaire. Répondre à : XML pour remplir un multi-formulaire.

#63046
Merlin
Maître des clés

Voilà ce qu’en dit la documentation :
For security reasons, this property or method may be available only during certain events. These
events include batch processing, application start, or execution within the console. (See the
event object for details of the Acrobat events.)
Beginning with Acrobat 7.0, to execute a security-restricted method through a menu event, one
of the following must be true:
– The JavaScript user preferences item Enable Menu Items JavaScript Execution Privileges is
checked.
– The method is executed through a trusted function. For details and examples, see the
app.trustedFunction method.
See Privileged versus non-privileged context for more information.
Note: (Acrobat 6.0 or later) Methods marked with S will execute without restriction in a certified
document provided the certifier’s certificate is trusted for running embedded high
privilege JavaScript and other limitations in the quick bar fields are met.

En clair il faut utiliser une « trusted function », on en a déjà parlé quelques fois sur le forum.