How to apply password prompt javascript on acrobat pdf -


i have pdf needs javascript prompt asks username , password or 1 of these. have tried native javascript way inside javascript editor of acrobat. alerts work fine prompts not working me.

var customername = prompt("please enter name", ""); 

have tried

var customername = app.prompt("please enter name", ""); 

edit: tried remove complex parts of process guys can understand better. guess owe guys explanation on trying achieve.

well have empty pdf going send users , when opened ask username/password submitted website through api. have api in place check correct credentials , on success print desired pdf content on php page, grabbed curl request through javascript inside empty pdf. , when want revoke access user delete user database on server. next time wants read pdf wont able pass through api security.

well know there drawbacks on applying many restrictions pdf reader compatibility etc. if works on acrobat fine. later on try remove print , save options etc.

most of parts done thing stuck @ moment on how send form request url. think js prompt doesn't work in acrobat guess have send data through acrobat form. 1 knows how can send request through forms or values of input boxes in javascript?

thank everyone, found out on how post data webpage. here link, can pdf fillable form post https url?

instead of choosing "pdf complete document" format options, choose html.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -