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?
Folder Level JavaScripts
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- Site Admin
- Posts: 3586
- Joined: Thu Jul 08, 2004 10:36 pm
Re: Folder Level JavaScripts
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.
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.
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.