This content has been marked as final. Show 6 replies
Are there any security settings on the document.
Are you sure addField is generating this error? There are several other methods being used in that script.
What type of PDF are you running this on? Is it an XFA Form?
There are no security settings on the doc that I know of. Can you give some examples or known settings of what might cause the error?
I've put console.println statements before and after addField, and it stops right after the addField line is executed. I'm running this on an Acrobat 8 (Dynamic) XML Form.
> I'm running this on an Acrobat 8 (Dynamic) XML Form.
That is the problem. You can't modify a Designer-created form in Adobe Acrobat.
Bernd beat me to it again.
Page 17 lists Acrobat JS functions that will not work with XFA forms. If you're going to be working with XFA forms, this is a very good document to have read.
Thanks for the responses guys!
On a related question, is there any way to batch certify hundreds of Designer-created PDFs? The only method that has worked was to certify them one-by-one in Acrobat. I've read the doc that PDL linked to, but it seems that the field signature methods don't work with Designer forms, unless I've missed something.