PDF-XChange - Tracker PDF Viewer - TIFF-XChange - Image-XChange - XMF-XChange - Raster-XChange - Support

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Paul - Tracker Supp, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan, Ivan - Tracker Software

 
mmitchell_houston
User
Topic Author
Posts: 6
Joined: Thu Apr 19, 2018 11:06 am

Is there a way to add a PageOpen javascript to every page?

Thu May 03, 2018 9:54 pm

I have a bit of javascript code I want to put on each and every page in my document.
Is there a way to quickly do this?
Or do I have to click on each and every page, one-by-one?
 
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 692
Joined: Wed Jan 03, 2018 6:52 pm

Re: Is there a way to add a PageOpen javascript to every page?

Thu May 03, 2018 11:12 pm

Once you've added a button that runs the JS, you should be able to select it and use the Duplicate function to place a copy of it on each page:
Image
Daniel McIntyre
Support Technician
Tracker Software Products (Canada) LTD

Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623
 
mmitchell_houston
User
Topic Author
Posts: 6
Joined: Thu Apr 19, 2018 11:06 am

Re: Is there a way to add a PageOpen javascript to every page?

Mon May 07, 2018 11:47 am

Thank you for the reply (and the tip -- I will remember it), but I'm not using a button to run the JS. As noted in the original post, I am adding a script to the PAGE OPEN event (click on the page thumbnail and you will be able to see the Page Open and Page Close options in the Page Properties panel.
 
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 692
Joined: Wed Jan 03, 2018 6:52 pm

Re: Is there a way to add a PageOpen javascript to every page?

Mon May 07, 2018 8:12 pm

Hi again,
You could try adding it to the document javascript (CTRL+D to open document settings), but you would need to add more parameters so that it could recognize a pageopen from there.
I do not know if there is another method of duplicating these, I will pass this to our dev support and see if they have any ideas for you on the mater.
Daniel McIntyre
Support Technician
Tracker Software Products (Canada) LTD

Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623
 
mmitchell_houston
User
Topic Author
Posts: 6
Joined: Thu Apr 19, 2018 11:06 am

Re: Is there a way to add a PageOpen javascript to every page?

Tue May 08, 2018 1:18 pm

I looked into the Document properties, and cannot figure out how to get it to add anything that can simulate a PageOpen event at that level. I suppose it might be possible to craft some sort of "listener" script, but for the life of me, I cannot find anyone who has documented how to do it.

Any progress on your end?

On my end, I'm looking into whether I can add the Javascript from the InDesign side of things.

Who is online

Users browsing this forum: No registered users and 1 guest