Launch javascript for each document
Adobe has a functionality to launch a javascript on launch of Adobe, by dropping a .js file in the following folder:
C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\Javascripts\
I have a document javascript (e.g. scroll to a specific page), which I would like to apply to every PDF I open.
If I add my document specific javascript as a file in the above folder, it doesn't work, because I reference javascript functions which are only available while an active document is opened.
I tried creating a loop to wait for an active document to be opened, but this makes Adobe freeze, even if I open Adobe by double clicking on a document (and thus opening an active document)?
Any advice on how I could tickle this?
