Hi there,
I am trying to get the following to work:
For 50 users:
1. Prefill a PDF form with user data
2. Mail the user the form.
3. Process the returned forms
Seems pretty standard to me. But I am running into the following:
If I run the form through the 'Distribute Form Wizard', 'Extended Features' is enabled and the form is saved so I can distribute it.
In the saved form I call importTextData via script to get the user data, but I run into a NotAllowedError because 'Extended Features' is enabled..
If I remove 'Extended Features' by saving the form under a different I can run the script and for every user the form is populated and mailed.
But, now because 'Extended Features' is disabled, in Acrobat Reader, the form can no longer be mailed back to me.
I guess I am completely missing the picture on how to go about the given scenario, but this really seemed like the simplest solution to me:
MailThemAll = app.trustedFunction(function(oDoc) {
app.beginPriv();
MailOneUser(oDoc, 0, "user [at] host [dot] com");
MailOneUser(oDoc, 1, "user2 [at] host [dot] com");
app.endPriv();
return true;
});
MailOneUser = app.trustedFunction(function(oDoc, no, email) {
app.beginPriv();
oDoc.importTextData("/c/temp/deelnemers.txt", no);
oDoc.mailDoc({
bUI: false,
cTo: email,
cSubject: "Useragreement",
cMsg: "Please check your userdata and mail back the form"
});
app.endPriv();
return true;
});
Looks nice and simple if you ask me. But it's not flying because of NotAllowedError 's.
Any advice will be greatly appreciated (especially by this years exhibitors of the annual Sheep Shaving Fest in Nisse, Netherlands).
Can anyone tell me the basic steps to prefill forms and e-mail them, let the user update their data, and return the form via e-mail after which the data can be collected. All this using just Acrobat Pro 9?
I keep running into NotAllowedErrors's as described in the earlier post. :-(