I have some Javascript files, which are working well.
Creating buttons in the tool register of the PDF-XChange Editor,
after clicking the buttons the action desired runs like a charm.
Now I came across the following:
I press one button and at the end of the script I have a yes/no dialog.
If yes it should call a function from another Javascript file, not inside the same file.
The separate file with only one function in it works if called through the button I created.
The file name and the function name are
No parameters to pass.filename "dblpagenumbers.js"
function "function dblpagenumbers()"
if I call in the script the function from the other script
I get the error at the last line of the script:dblpagenumbers();
but all other actions are also not working in this separate script.Mozilla JavaScript Engine is initialized (vJavaScript-C 17.0.4esrpre)
App:Init:204: TypeError: this.flattenPages is not a function
So again the scripts are working well if called separately from the menubuttons.
Is there any hint/syntax to call a function from the same directory
from another script?
As I understand the scripts are loaded all from this PDF-XChange Javascript directory at starting of PDF-XChange.
Simple thing long explained, hope you understand,
regards,
Fritz