Save Extracted Pages to New File by default

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

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

Re: Save Extracted Pages to New File by default

Post by Stefan - PDF-XChange »

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

Re: Save Extracted Pages to New File by default

Post by Stefan - PDF-XChange »

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 - PDF-XChange
Site Admin
Posts: 2444
Joined: Thu Jun 30, 2005 4:11 pm

Re: Save Extracted Pages to New File by default

Post by Vasyl - PDF-XChange »

As Stefan mentioned you may use for your case:

Code: Select all

m_cPDFView.SetProperty("Operations.ExtractPages.SaveAfterExtract", _variant_t(1), 0);
HTH.
PDF-XChange Co. LTD (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
Stefan - PDF-XChange
Site Admin
Posts: 19846
Joined: Mon Jan 12, 2009 8:07 am

Re: Save Extracted Pages to New File by default

Post by Stefan - PDF-XChange »

Glad we could assist ap_mi!

Cheers,
Stefan