Disabling file launching and external hyperlink navigation

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

kluck
User
Posts: 2
Joined: Mon Feb 22, 2016 12:49 pm

Disabling file launching and external hyperlink navigation

Post by kluck »

As requested, here is my minimum support information:

1: Version and build of the Product you are using of ours.
PDF-XChange Viewer SDK
PDFXCview.exe: 2.5.316.1
PDFXCviewAx.dll: 2.5.316.1

2: Version and build of your development tool/application (i.e. Delphi 6, VB.Net etc)
VB6 6.0 (SP6) 9782

3: Windows Version and any service pack info.
Edition: Windows 10 Pro
Version: 1511
OS Build: 10586.104
System type: 64-bit operating system, x64-based processor

4: A Clear and concise description of the issue
I need to completely suppress the viewer control's abilities to:
a. navigate external hypertext links
b. open files
The motivation for this need is that I require the viewer to run in a very secure mode - launching files or opening a browser is strictly prohibited.

5: Source files (i.e. if converting an image - supply the image) and any PDF file generated etc
Not applicable

6: Any relevant code snippets
Not applicable

7: Ensure you have checked any error or return codes in your source code before requesting support
I've tried a number of approached but cannot find anything in the SDK examples to address my need
Last edited by kluck on Mon Feb 29, 2016 6:38 pm, edited 1 time in total.
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2353
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Disabling file launching and external hyperlink navigati

Post by Vasyl-Tracker Dev Team »

Hi, kluck.

Please look there:
https://help.pdf-xchange.com/DEV/de ... bj_prompts

ConfirmOpenSite
- look for sample in pseudocode. You may set 2 (i.e. "Cancel") value to "Prompts.ConfirmLaunchFile.UseChoice" property, during processing the corresponding notification.

ConfirmLaunchFile
ConfirmOpenRDoc

- both are undocumented but similar to ConfirmOpenSite. So, to prevent launching programs/files from pdf - set the 2 to "UseChoice" property too.

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.
kluck
User
Posts: 2
Joined: Mon Feb 22, 2016 12:49 pm

Re: Disabling file launching and external hyperlink navigati

Post by kluck »

Thanks for the information. The only problem I ran into was a typo in your post: substring "UseChoice" must be "UserChoice"
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17960
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: Disabling file launching and external hyperlink navigati

Post by Tracker Supp-Stefan »

Hello kluck,

Glad we could help,
And I have passed the typo to the guys maintaining the web content for update.

Cheers,
Stefan