save request  SOLVED

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
AteBe
User
Posts: 63
Joined: Thu Dec 06, 2018 7:02 am

save request

Post by AteBe »

I have changed an open pdf. Then I open with IPXV_Control.OpenDocFrom another pdf, which triggers a save request for the first pdf.
Since I never want that, I set the Modified flag to false for the first pdf with IPXV_Document.SetModified ().
Nevertheless, the save request still comes. How can you suppress the save request ?
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: save request

Post by Sasha - Tracker Dev Team »

Hello AteBe,

You can catch this event:
https://sdkhelp.pdf-xchange.com/vi ... beforeSave
Mark it as Handled and specify the Result as 1.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
AteBe
User
Posts: 63
Joined: Thu Dec 06, 2018 7:02 am

Re: save request

Post by AteBe »

Hallo Alex,
thanks for the information.
Unfortunately, the event beforeSave will not be fired until the popup for the save request is already displayed.
But I'm looking for a solution that does not show the popup.
AteBe
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: save request  SOLVED

Post by Sasha - Tracker Dev Team »

Hello AteBe,

Alternatively, you can close the IPXV_Document manually before opening the new one (pass 0 flag into the Close method).

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply