Copy link to clipboard
Copied
I have written "User" Specific Folder level script. I placed it in
"~/Library/Application Support/Adobe/Acrobat/DC/JavaScripts"
It is getting loaded both in Acrobat Pro DC and Acrobat Reader DC . How can i differentiate both from inside JavaScript.
I tried checking plugin names by using
app.plugIns.toString()
Is there any other efficient way to do this .
Copy link to clipboard
Copied
You can check app.viewerType;
Copy link to clipboard
Copied
if (app.viewerType == "Reader") { // place your script here }
or
if (app.viewerType != "Reader") { // place your script here }
See documentation: