Disable Snapshot tool on Loupe Tool and Pan and Zoom Tool

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

milonass
User
Posts: 35
Joined: Tue Oct 06, 2015 1:09 pm

Disable Snapshot tool on Loupe Tool and Pan and Zoom Tool

Post by milonass »

On the 'Loupe Tool' and 'Pan and Zoom Tool' there is a second possibility to create snapshots even if

'Commands["SnapshotTool"].State' is 'Offline' .

Is there a possibility to disable these snapshot tools also or do we have to disable the whole functions?

Thank you and regards,
Thomas
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2444
Joined: Thu Jun 30, 2005 4:11 pm

Re: Disable Snapshot tool on Loupe Tool and Pan and Zoom Too

Post by Vasyl - PDF-XChange »

Hi Thomas.

Please use the following code:

Code: Select all

pdfCtl.SetProperty("Commands["#33412"].State", "Offline", 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.
milonass
User
Posts: 35
Joined: Tue Oct 06, 2015 1:09 pm

Re: Disable Snapshot tool on Loupe Tool and Pan and Zoom Too

Post by milonass »

Hi Vasyl,

thank you for your reply. Unfortunately I get a crash when setting this command. Is the number ["#33412"] correct?
Furthermore I would like to know how to disable the "Online Search" button.

Thank you.

Thomas
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19846
Joined: Mon Jan 12, 2009 8:07 am

Re: Disable Snapshot tool on Loupe Tool and Pan and Zoom Too

Post by Stefan - PDF-XChange »

Hi Thomas,

33412 is "Make Snapshot":
https://help.pdf-xchange.com/DEV/de ... mmand_list
So yes it seems the ID is the correct one.

Please also take a look here:
https://help.pdf-xchange.com/DEV/de ... xactphrase
Seems like the

Code: Select all

SetProperty("Commands[" + i + "].State", DataIn("Offline"), 0);
is the correct syntax, so can you please check which build of the Viewer SDK are you using?

Regards,
Stefan
milonass
User
Posts: 35
Joined: Tue Oct 06, 2015 1:09 pm

Re: Disable Snapshot tool on Loupe Tool and Pan and Zoom Too

Post by milonass »

Hi Vasyl,

im am using the Viewer not the Editor. And in the Viewer command list this command is not listed.

Thanks.
Thomas
milonass
User
Posts: 35
Joined: Tue Oct 06, 2015 1:09 pm

Re: Disable Snapshot tool on Loupe Tool and Pan and Zoom Too

Post by milonass »

ok, I found it: 'Commands[#33412].State' works, not 'Commands["#33412"].State'.

Thanks.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19846
Joined: Mon Jan 12, 2009 8:07 am

Re: Disable Snapshot tool on Loupe Tool and Pan and Zoom Too

Post by Stefan - PDF-XChange »

Hello milonass,

The above links were for the Viewer SDK, but I see you figured it out!

Cheers,
Stefan