Search found 12 matches
- Wed Feb 14, 2018 10:48 pm
- Forum: PDF-XChange Editor
- Topic: Get Snapshot Properties From JavaScript Console
- Replies: 1
- Views: 828
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...
- Mon Jan 29, 2018 2:23 am
- Forum: Editor plugins
- Topic: Call Tools from JavaScript
- Replies: 3
- Views: 5253
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 ...
- Thu Dec 22, 2016 4:05 pm
- Forum: PDF-XChange Editor
- Topic: Reorder Tabs SOLVED
- Replies: 13
- Views: 3847
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...
- Wed Nov 23, 2016 4:18 pm
- Forum: Editor plugins
- Topic: Copy more information from Area Tool
- Replies: 16
- Views: 11349
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.
- Wed Nov 23, 2016 4:12 pm
- Forum: Editor plugins
- Topic: Copy more information from Area Tool
- Replies: 16
- Views: 11349
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...
- Wed Nov 23, 2016 2:38 pm
- Forum: Editor plugins
- Topic: Copy more information from Area Tool
- Replies: 16
- Views: 11349
Re: Copy more information from Area Tool
I just installed it, rebooted my computer and it still isn't working.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,
- Mon Nov 14, 2016 3:27 pm
- Forum: Editor plugins
- Topic: Copy more information from Area Tool
- Replies: 16
- Views: 11349
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...
- Sat Oct 15, 2016 7:53 pm
- Forum: Editor plugins
- Topic: Copy more information from Area Tool
- Replies: 16
- Views: 11349
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?
- Thu Oct 13, 2016 1:40 pm
- Forum: Editor plugins
- Topic: Copy more information from Area Tool
- Replies: 16
- Views: 11349
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.
- Wed Oct 12, 2016 9:39 pm
- Forum: Editor plugins
- Topic: Copy more information from Area Tool
- Replies: 16
- Views: 11349
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...
- Wed Oct 12, 2016 3:12 pm
- Forum: Editor plugins
- Topic: Copy more information from Area Tool
- Replies: 16
- Views: 11349
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...
- Tue Oct 11, 2016 7:01 pm
- Forum: Editor plugins
- Topic: Copy more information from Area Tool
- Replies: 16
- Views: 11349
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.
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.