Thumbnail Toolbar & DenyAllPrintOperations

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

Tracker - Clarion Support
Site Admin
Posts: 64
Joined: Wed Jun 30, 2004 4:45 pm

Thumbnail Toolbar & DenyAllPrintOperations

Post by Tracker - Clarion Support »

I have a developer who needs to be able to disable both the Export and Print buttons on the Thumbnail toolbar in his ActiveX window.

Using DenyAllExportOperations accomplishes this for the Export button, but setting Command State for Print does not do this for the Thumbnail toolbar Print button which remains functional.

Would it be possible to add DenyAllPrintOperations to the ActiveX which would disable ALL Print operations, buttons, toolbars, etc.? It would certainly help my developer!

Possibly a DenyAllSaveOperations would be useful as well, to prevent end-users from saving copies of the PDF being displayed.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: Thumbnail Toolbar & DenyAllPrintOperations

Post by Vasyl - PDF-XChange »

You can disable some commands for this:
SetProperty("Commands["Print"].State", "Offline");
SetProperty("Commands["Save"].State", "Offline");
SetProperty("Commands["SaveAs"].State", "Offline");
SetProperty("Commands["SaveCopyAs"].State", "Offline");
In the future we planning to add special possibility for read/modify of document permissions (print, save, export, copy.. etc.).
It can be represented in the future as:
SetDocumentProperty(DocID, "Permissions.Print", "false");
SetDocumentProperty(DocID, "Permissions.Save", "false");
SetDocumentProperty(DocID, "Permissions.Export", "false");
SetDocumentProperty(DocID, "Permissions.Close", "false");
...
DenyAllPrintOperations, DenyAllSaveOperations - also good idea, and it will be added in the next build.

Thanks.
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.
Tracker - Clarion Support
Site Admin
Posts: 64
Joined: Wed Jun 30, 2004 4:45 pm

Re: Thumbnail Toolbar & DenyAllPrintOperations

Post by Tracker - Clarion Support »

Hi Vasyl!

SetProperty("Commands["Print"].State", "Offline"); For some reason, this does not seem to disable the functionality of the Print button on the Thumbnail toolbar

Looking forward to DenyAllPrintOperations and DenyAllSaveOperations in the next build!

Any estimated delivery date for that? ("This month" "Next Month" "4th quarter" ?)
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: Thumbnail Toolbar & DenyAllPrintOperations

Post by Vasyl - PDF-XChange »

Possible in the next week.
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.