javascript - How to store variable data in PDF after close? -


i'm coding pdf application in acrobat using javascript, , need ability store data in background after document closed.

for example, if set value of array arr[0] = "mydata"; (and let's happens dynamically) when close , reopen pdf value of arr[0] return undefined.

is there way store data saves pdf file can call using javascript? i'd ideally in background rather filling dummy text box bunch of text.

thanks!

i found solution work.

i incorporated diodeus's link editing acrobat metadada along json object found here: https://github.com/douglascrockford/json-js/blob/master/json2.js

i took object wanted , used stringify method (of json object) turn json string. stored in meta variable (diodeus's link).

to object, used parse method (of json object). works charm!


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -