Question On PXV_DocSaveFlags

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
plgoldman
User
Posts: 36
Joined: Fri Jan 05, 2018 8:36 pm

Question On PXV_DocSaveFlags

Post by plgoldman »

I've not been able to find any details on what the differences between the PXV_DocSaveFlags "PXV_DocSave_Incremental" and "PXV_DocSave_NonIncremental" are. Could you please help me out?

Regards,
Paul
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Question On PXV_DocSaveFlags

Post by Sasha - Tracker Dev Team »

Hello Paul,

If you specify the PXV_DocSave_Incremental flag - then the incremental save will be done in all cases.
If you specify the PXV_DocSave_NonIncremental flag - then the incremental save won't be done in all cases.
If you don't specify any of those flags then the incremental save will be used if the Settings[L"Docs.Save.AlwaysIncSave"] is true (there is such an option is the Application Preferences). If that setting is false then there is another case when the save can become incremental - is when the document form's SigFlags property is set to PXC_FormSigFlag::FormSig_AppendOnly. In all other cases the save won't be incremental.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
plgoldman
User
Posts: 36
Joined: Fri Jan 05, 2018 8:36 pm

Re: Question On PXV_DocSaveFlags

Post by plgoldman »

Alex,

Thanks for the detailed information. I'm looking at implementing an "auto save" function to prevent loss of data while the end user goes through what can at times be a length workflow to add information to and possibly modify the contents of an input document. The "incremental save" combined with the MS WPF "DispatcherTimer" should do the job with minimum overhead.

Regards,
Paul
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Question On PXV_DocSaveFlags

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply