Folder Level JavaScripts

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

fingerclaw
User
Posts: 1
Joined: Thu Nov 21, 2013 8:39 am

Folder Level JavaScripts

Post by fingerclaw »

Hello,

I want to create folder level JavaScript that I will call from dynamically created stamps. If I put my .js file in application JavaScript folder, everything is fine and I can call scripts functions from code in my dynamic stamp. The problem is when I move same .js file to user JavaScript folder. No variables or functions in that .js file seem to be accessible anymore and I always get 'undefined' as result.

Path to those folders I get using
app.getPath("app","javascript");
app.getPath("user","javascript");

The PDF-XChange Viewer I have is 2.5.213

Is this a bug of a viewer or am I doing wrong?
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3586
Joined: Thu Jul 08, 2004 10:36 pm

Re: Folder Level JavaScripts

Post by Ivan - Tracker Software »

Unfortunately the Viewer does not load scripts from the user's folder.
It is fixed now, and the fix will be available in the next build.
PDF-XChange Co Ltd. (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.