开发者

PDF Javascript "Operation is not permitted" error

开发者 https://www.devze.com 2023-01-22 05:14 出处:网络
I have been asked to create a PDF form that will be sent to a user, they fill it out and then they click a button on the PDF that emails it to a specified email address. I know this can easily be don

I have been asked to create a PDF form that will be sent to a user, they fill it out and then they click a button on the PDF that emails it to a specified email address. I know this can easily be done in Adobe LiveCycle but we currently dont have开发者_如何转开发 that and I am trying to avoid using anything other than Acrobat and Reader.

I am testing some things out and I have created a link on the page that uses the following JavaScript:

this.submitForm({

cURL: "mailto:me@emailaddress.com",

cSubmitAs: "PDF"

});

This works fine in Adobe Acrobat, but not in Reader (Which is what the users will view it in). When using the Adobe debugging console I get the following error message:

RaiseError: This operation is not permitted. Doc.submitForm:3:Link undefined:Mouse Up ===> This operation is not permitted.

Any idea what is happening and why Reader wont open it properly? Thanks in advance for all who contribute.


Check the permissions of all files involved. Often times the user trying to access content won't have the necessary privileges.


Old question, but here's the answer if you haven't figured it out, because I am in the middle of the same issue. :(

You cannot get Reader to submit as PDF w/o enabling those specific rights in the PDF document. And, the way to enable those rights is to purchase Reader Extensions to get that functionality turned on in the PDF you want filled out.

You can, however, send form data as FDF/XFDF w/o extensions. Basically, it's the user-supplied data stripped out of the PDF form and sent as FDF, X(ML)FDF or HTML.

0

精彩评论

暂无评论...
验证码 换一张
取 消