extracting pages causes viewer to display the new file

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

extracting pages causes viewer to display the new file

Post by ap_mi »

Hello,

Currently when a user extracts pages to a new file the pdf viewer then displays the new file of extracted pages. Is there a property I can use to suppress that?

I believe the post below was also asking for the same thing.
Please see https://forum.pdf-xchange.com/ ... 35&t=12740

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

Re: extracting pages causes viewer to display the new file

Post by Tracker Supp-Stefan »

Hello ap_mi,

I am afraid that there's no way to suppress that when the Viewer UI is used. If you want to do the process silently in the background - do it via code and not with the UI.
In the Editor - the Extract pages process will just to the extraction and not load the file automatically:
https://sdkhelp.pdf-xchange.com/vie ... tractPages

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

Re: extracting pages causes viewer to display the new file

Post by ap_mi »

Do you think there's a way to do this with the use of the OnEvent event handler?

I've started experimenting by closing the second document (Documents[1]) by doing a DoVerb("Documents[1]", "close", DataIn, DataOut, 0) when the Documents.Active event occurs, but when I do this the whole viewer freezes.

Any ideas?

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

Re: extracting pages causes viewer to display the new file

Post by Tracker Supp-Stefan »

Hello ap_mi,

Make sure that you obtain and use the correct Document ID (not index), and they should then close properly:
https://help.pdf-xchange.com/DEV/de ... xactphrase

Regards,
Stefan
Post Reply