Saving when you Delete Pages after Extraction

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

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

Post Reply
ap_mi
User
Posts: 47
Joined: Mon Aug 31, 2015 11:38 pm

Saving when you Delete Pages after Extraction

Post by ap_mi »

Hello,

When extracting pages and when "Delete Pages After Extraction" is checked I'd like to find a way to automatically save the changes to the source document?

Is there a property I can set to make this happen?

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

Re: Saving when you Delete Pages after Extraction

Post by Tracker Supp-Stefan »

Hello ap_mi,

You will need to listen for events - and when the file is modified - you can perform a save if you wish:
Sample (pseudo)code is available here:
https://forum.pdf-xchange.com/ ... enthandler OnEvent(type, name, ..)
{
if (type == PXCVA_OnPropertyChanged)
{
if (HasSuffix(name, ".Modified")) // name == "Documents[#<docID>].Modified"
{
bool bModified = pdfViewer.Property(name, 0);
...
}
}
}[/code]

Regards,
Stefan
Post Reply