Keep last release insted of update

PDF-XChange Editor SDK for Developers

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

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
nbmani
User
Posts: 17
Joined: Tue Feb 14, 2023 11:53 am

Keep last release insted of update

Post by nbmani »

I've received an update to the new release PDF-XChange Editor.

Is it possible to keep the older one?

Thanks
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17960
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Keep last release insted of update

Post by Tracker Supp-Stefan »

Hello nbmani,

Are you having any difficulties with the new one, or is there another reason for you to want to use an older one?

Kind regards,
Stefan
nbmani
User
Posts: 17
Joined: Tue Feb 14, 2023 11:53 am

Re: Keep last release insted of update

Post by nbmani »

I've developed two plugins using javascript and with the new update I'm not able to use it because it is appearing an error regarding security.

I already tried to create a trust function but I'm really struggling to keep doing my work with that plugins while I'm trying to understand what have changed in order to keep working...
nbmani
User
Posts: 17
Joined: Tue Feb 14, 2023 11:53 am

Re: Keep last release insted of update

Post by nbmani »

I've founded that the issue of not appearing my script in a button (ribbon) is due to this:


app.addToolButton({
cName: "ExtractPagesByKeywords",
cLabel: "Extract Pages by Keywords to one PDF file",
cExec: "extractPagesByKeywords()",
cTooltext: "Extract pages containing specific keywords",
cEnable: true,
nPos: -1
});

I used to have this in my scripts and I was allowed to see in the ribbon but now with new update I'm not able.

Do you know how can go around?
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17960
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Keep last release insted of update

Post by Tracker Supp-Stefan »

Hello nbmani,

You have posted in the Editor SDK section of our forums. Are you executing this script though the Editor SDK, or are you e.g. storing that as a ,js file in
%Appdata%\Tracker Software\PDFXEditor\3.0\JavaScripts
?

Kind regards,
Stefan
nbmani
User
Posts: 17
Joined: Tue Feb 14, 2023 11:53 am

Re: Keep last release insted of update

Post by nbmani »

Yes. I'm doing it.

My code works fine without having the app.addbutton but when I added this method to have the code in the toolbar my code don't go as expected.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17960
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Keep last release insted of update

Post by Tracker Supp-Stefan »

Hello nbmani,

I would assume that you are using .js files and are doing that in the UI.
In your extractPagesByKeywords() function you are likely calling operations that require a privileged context, and the appToolButton is not usually created in such a privileged context.

We've made changes in V10 and started enforcing privileged context stricter, so you might need to make adjustments as the ones discussed here to get you scripts to work once again:
viewtopic.php?p=170725#p170725

Kind regards,
Stefan
Post Reply