Page 1 of 1

extracting pages causes viewer to display the new file

Posted: Tue Oct 11, 2016 12:30 am
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.

Re: extracting pages causes viewer to display the new file

Posted: Tue Oct 11, 2016 8:47 am
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

Re: extracting pages causes viewer to display the new file

Posted: Tue Oct 18, 2016 9:21 pm
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.

Re: extracting pages causes viewer to display the new file

Posted: Wed Oct 19, 2016 8:51 am
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