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.
Saving when you Delete Pages after Extraction
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
- Tracker Supp-Stefan
- Site Admin
- Posts: 17907
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: Saving when you Delete Pages after Extraction
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
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