Search found 12 matches

by kcd2015
Wed Feb 14, 2018 10:48 pm
Forum: PDF-XChange Editor
Topic: Get Snapshot Properties From JavaScript Console
Replies: 1
Views: 820

Get Snapshot Properties From JavaScript Console

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 f...
by kcd2015
Mon Jan 29, 2018 2:23 am
Forum: Editor plugins
Topic: Call Tools from JavaScript
Replies: 3
Views: 5180

Call Tools from JavaScript

From the JavaScript Console how would I activate the Line Tool with javascript? Or any of the tools for that matter? My intent is to have a custom toolbar button and when the user clicks it will be prompted for a string value, I then need to set this string value as the subject property of the Line ...
by kcd2015
Thu Dec 22, 2016 4:05 pm
Forum: PDF-XChange Editor
Topic: Reorder Tabs SOLVED
Replies: 13
Views: 3837

Re: Reorder Tabs SOLVED

I know this thread is several months old now but I came here searching for a quick solution to the same problem. I had an idea after reading the responses, since it is windows explorer that is the problem (feeding the filenames to the pdfxchange in the wrong order) why not write a cmd or python scri...
by kcd2015
Wed Nov 23, 2016 4:18 pm
Forum: Editor plugins
Topic: Copy more information from Area Tool
Replies: 16
Views: 11071

Re: Copy more information from Area Tool

I'm sorry, I'm an idiot... the toolbar was 'minimized', all is well... This toolbar UI is ever so slightly different than standard so it threw me off.
by kcd2015
Wed Nov 23, 2016 4:12 pm
Forum: Editor plugins
Topic: Copy more information from Area Tool
Replies: 16
Views: 11071

Re: Copy more information from Area Tool

Here is my js in it's entirety: app.addToolButton({ cName: "CalcLnLengths", cExec: "calcLineLengths();", cTooltext: "Calc Segment Length!", cEnable: true, nPos: 0 }); function calcLineLengths() { console.show(); console.clear(); var sa = this.selectedAnnots; if (sa.leng...
by kcd2015
Wed Nov 23, 2016 2:38 pm
Forum: Editor plugins
Topic: Copy more information from Area Tool
Replies: 16
Views: 11071

Re: Copy more information from Area Tool

Will - Tracker Supp wrote:Hi kcd2015,

Are you using the latest release (Version 6 Build 318.1)? If not, please try the latest release and see if that helps:
https://www.pdf-xchange.com/PDFXVE6.zip

Cheers,
I just installed it, rebooted my computer and it still isn't working.
by kcd2015
Mon Nov 14, 2016 3:27 pm
Forum: Editor plugins
Topic: Copy more information from Area Tool
Replies: 16
Views: 11071

Re: Copy more information from Area Tool

app.addToolButton({ cName: "Calc Segments Length!", cExec: "doF()", cTooltext: "Calc Segments Length!", cEnable: true, nPos: 0 });[/code] I don't know what's changed but this code doesn't seem to be working anymore. When I load PDF-XChange this button is no longer avai...
by kcd2015
Sat Oct 15, 2016 7:53 pm
Forum: Editor plugins
Topic: Copy more information from Area Tool
Replies: 16
Views: 11071

Re: Copy more information from Area Tool

Is there online documentation that shows what objects and their methods/properties are available to me through the javascript?
by kcd2015
Thu Oct 13, 2016 1:40 pm
Forum: Editor plugins
Topic: Copy more information from Area Tool
Replies: 16
Views: 11071

Re: Copy more information from Area Tool

Okay, good to know. Thank you everyone for your input, it will be a big help to me.
by kcd2015
Wed Oct 12, 2016 9:39 pm
Forum: Editor plugins
Topic: Copy more information from Area Tool
Replies: 16
Views: 11071

Re: Copy more information from Area Tool

That's great again! Thank you. Regarding the scaling. I'm using the area tool to take off dimensions from construction blue prints. When I use the Area, Distance, or Perimeter tool I already set scale in the tool bar. It would be nice if I could access this user defined scale from the javascript, is...
by kcd2015
Wed Oct 12, 2016 3:12 pm
Forum: Editor plugins
Topic: Copy more information from Area Tool
Replies: 16
Views: 11071

Re: Copy more information from Area Tool

Thank you, that works great! Now I can start hacking. Now I have two questions: 1) What is the variable/how do I access the scale of the selectedAnnot? 2) When I trace out a polygon/area I double-click my last corner to finish the area. I've discovered from this script that that method has a side ef...
by kcd2015
Tue Oct 11, 2016 7:01 pm
Forum: Editor plugins
Topic: Copy more information from Area Tool
Replies: 16
Views: 11071

Copy more information from Area Tool

How difficult will it be to write a plugin, or javascript, that will report the lengths of each side of a polygon drawn with the 'Area Tool'?

What would be perfect for me is if I could right click on the "Area Info" box and have an option to copy this data to clipboard.