Save Extracted Pages to New File by default

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

Save Extracted Pages to New File by default

Post by ap_mi »

Hello,

Is there a property we can set in order to have the "Save Extracted Pages to New File" option enabled by default (see image below).

In the documentation I see that there's properties for the other 2 options:
m_cPDFView.SetProperty("Operations.ExtractPages.DeleteAfterExtract", _variant_t(1), 0);
m_cPDFView.SetProperty("Operations.ExtractPages.ExtractToFiles", _variant_t(1), 0);

However, I couldn't find a property for the "Save Extracted Pages to New File".

Any ideas would be appreciated.

Thanks.

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

Re: Save Extracted Pages to New File by default

Post by Tracker Supp-Stefan »

Hello ap_mi,

If you do the extraction via code - the settings are on the below page:
https://help.pdf-xchange.com/DEV/de ... xactphrase

If you want to show the users the UI dialogue with this option checked - I am not sure how this can be achieved and will need to check with my colleagues from the dev team to be able to provide further feedback.

Regards,
Stefan
ap_mi
User
Posts: 47
Joined: Mon Aug 31, 2015 11:38 pm

Re: Save Extracted Pages to New File by default

Post by ap_mi »

Yes, I'm hoping to find a property to set to have the "Save Extracted Pages to New File" checkbox checked by default when users bring up the "Extract Pages" dialog.

To further clarify, I'm hoping to find something that works similar to

Code: Select all

m_cPDFView.SetProperty("Operations.ExtractPages.DeleteAfterExtract", _variant_t(1), 0);


By running the code above you'll see that the "Delete Pages After Extraction" box is checked by default when you bring up the "Extract Pages" dialog. I hope to find the same functionality for the "Save Extracted Pages to New File" checkbox.

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

Re: Save Extracted Pages to New File by default

Post by Tracker Supp-Stefan »

Hello ap_mi,

Setting

Code: Select all

HKEY_CURRENT_USER\SOFTWARE\Tracker Software\PDFViewer\Operations\ExtractPages\SaveAfterExtract = 1 
Should make that UI checkbox selected by default.

Regards,
Stefan
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2352
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Save Extracted Pages to New File by default

Post by Vasyl-Tracker Dev Team »

As Stefan mentioned you may use for your case:

Code: Select all

m_cPDFView.SetProperty("Operations.ExtractPages.SaveAfterExtract", _variant_t(1), 0);
HTH.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
ap_mi
User
Posts: 47
Joined: Mon Aug 31, 2015 11:38 pm

Re: Save Extracted Pages to New File by default

Post by ap_mi »

This was exactly what I was looking for:

Code: Select all

m_cPDFView.SetProperty("Operations.ExtractPages.SaveAfterExtract", _variant_t(1), 0);
Thank you both.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Save Extracted Pages to New File by default

Post by Tracker Supp-Stefan »

Glad we could assist ap_mi!

Cheers,
Stefan
Post Reply