Saving when you Delete Pages after Extraction

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

Moderators: Daniel - PDF-XChange, PDF-XChange Support, Vasyl - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

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
Stefan - PDF-XChange
Site Admin
Posts: 19846
Joined: Mon Jan 12, 2009 8:07 am

Re: Saving when you Delete Pages after Extraction

Post by Stefan - PDF-XChange »

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