Get Snapshot Properties From JavaScript Console

Forum for the PDF-XChange Editor - Free and Licensed Versions

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

Post Reply
kcd2015
User
Posts: 12
Joined: Tue Oct 11, 2016 6:55 pm

Get Snapshot Properties From JavaScript Console

Post by kcd2015 » Wed Feb 14, 2018 10:48 pm

Can anyone give me an example how to access a snapshot's properties from the JavaScript console? More specifically I need to extract the coords of the current snapshot.

My end goal here is to be able to Snapshot an area, do what I need to do with my snapshot image in the clipboard, then call my js from a button on the toolbar that will return the top, left, width, and height values of the current snapshot.

I already know how to call my scripts from the toolbar and all that jazz, just need to know how to access the snapshot properties.

Any help would be very much appreciated.

User avatar
TrackerSupp-Daniel
Site Admin
Posts: 2738
Joined: Wed Jan 03, 2018 6:52 pm

Re: Get Snapshot Properties From JavaScript Console

Post by TrackerSupp-Daniel » Thu Feb 15, 2018 12:40 am

Our Java API supports nearly all the functions available in the adobe reference
https://www.adobe.com/content/dam/acom/ ... erence.pdf
Hope you can find the answers here!
Daniel McIntyre
Support Technician
Tracker Software Products (Canada) LTD

Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623

Post Reply