Hello,
Unfortunately, I couldn't find the information through the forum search or any manual. If I just searched poorly, I would greatly appreciate a link.
Anyway, I have the XChange Pro license and want to create a tile in the corresponding editor that essentially does two things:
Save the current PDF document
Execute a script (VBS or Python). The script can very well be an external file so that I can simply execute this file by clicking on the tile.
I tried it through "Customize Toolbars" - "Commands", but "new" is always grayed out, so I can't even get to the point to check if I'm in the right place.
Furthermore, I am wondering whether and if so, how I can pragmatically distribute the tile, once I've created it, to other users of my system/network, some of whom have a license and some do not.
Thank you in advance for your support.
Best regards,
Alex
Create tile to execute multiple events
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- Site Admin
- Posts: 19868
- Joined: Mon Jan 12, 2009 8:07 am
Re: Create tile to execute multiple events
Hello Alex,
Welcome to our forums.
Can you please let us know what do you want to perform as operations on such a file?
I do not think you can execute an external script (for security reasons), but the build in JS support might be able to perform the needed operations, and you can then have a button that would execute that JS and then save your file.
Kind regards,
Stefan
Welcome to our forums.
Can you please let us know what do you want to perform as operations on such a file?
I do not think you can execute an external script (for security reasons), but the build in JS support might be able to perform the needed operations, and you can then have a button that would execute that JS and then save your file.
Kind regards,
Stefan
-
- User
- Posts: 2
- Joined: Thu Jun 06, 2024 3:38 pm
Re: Create tile to execute multiple events
Thank you for your response. We have a document management system for which we want to create the option to open PDFs there (they are copied from the server to the local hard drive and then opened from there - I can get the exact file path), edit them, and then save the edited form back into the document management system.
The system only provides for opening the file, but the saving of the modified file is not passed back to the system. However, there are functions (VBS) that can handle this. So my script to be executed would then realize the transfer.
Although I have no experience with programming in JS, I would guess that my plan would unfortunately not succeed with it.
The system only provides for opening the file, but the saving of the modified file is not passed back to the system. However, there are functions (VBS) that can handle this. So my script to be executed would then realize the transfer.
Although I have no experience with programming in JS, I would guess that my plan would unfortunately not succeed with it.
-
- User
- Posts: 109
- Joined: Mon Feb 13, 2023 6:13 am
Re: Create tile to execute multiple events
Hello afrank!
I think you could fashion something along the lines detailed here viewtopic.php?p=179155#p179155 to reach your goal.
Kind regards,
Daniel
I think you could fashion something along the lines detailed here viewtopic.php?p=179155#p179155 to reach your goal.
Kind regards,
Daniel
-
- Site Admin
- Posts: 11036
- Joined: Wed Jan 03, 2018 6:52 pm
Re: Create tile to execute multiple events
Hello, Alex and KD
KD Thank you for the suggestion and citation, spreading those methods is great!
Alex, having no background with JS would certainly make the task a bit more difficult, but alas, the "new" button for commands is merely a relic of an older feature idea which was never implemented due to the complexity of such actions. JS may the the only method to accomplish anything remotely like what you need there.
Kind regards,
KD Thank you for the suggestion and citation, spreading those methods is great!
Alex, having no background with JS would certainly make the task a bit more difficult, but alas, the "new" button for commands is merely a relic of an older feature idea which was never implemented due to the complexity of such actions. JS may the the only method to accomplish anything remotely like what you need there.
Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com