We have just started using your software for our internal web applications.
I would like to know, how users can view documents in read only mode, with save as, print, save options disabled?
Can the menu options be predefined so users can not change them?
For your information we are using your application with internet explorer 7/8.
Thanks,
Sajeel
How to disable "save as and print" options in IE8
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 2
- Joined: Thu Dec 17, 2009 3:13 pm
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: How to disable "save as and print" options in IE8
Hello,
You can deny UI customizing by using following property:
To disable unnecessary operations you can use:
Also please see the help file provided (page 241) and provided examples.
You can deny UI customizing by using following property:
Code: Select all
PDFXCview.SetProperty('View.Locked', 1, 0);
Code: Select all
PDFXCview.SetProperty('General.DenyAllPrintOperations', 1, 0);
PDFXCview.SetProperty('General.DenyAllExportOperations', 1, 0);
PDFXCview.SetProperty('General.DenyAllSaveOperations', 1, 0);
-
- User
- Posts: 2
- Joined: Thu Dec 17, 2009 3:13 pm
Re: How to disable "save as and print" options in IE8
Hi
Thanks for your reply, where should this code be used using your pdfviewer application in Internet Explorer. We are just using your software to view files in a particular location.
Once the pdfviewr launches the open, save options are still enabled. How can these commands be used in activex control that will disable these commands upon load.
I would appreciate any working example you have.
Thanks
Thanks for your reply, where should this code be used using your pdfviewer application in Internet Explorer. We are just using your software to view files in a particular location.
Once the pdfviewr launches the open, save options are still enabled. How can these commands be used in activex control that will disable these commands upon load.
I would appreciate any working example you have.
Thanks
-
- Site Admin
- Posts: 2448
- Joined: Thu Jun 30, 2005 4:11 pm
Re: How to disable "save as and print" options in IE8
Hi sajeel.
Unfortunately, in your case you cannot use the our PDF-Viewer Browser Plugin (which can be displayed in any Internet-Browser) because this ActiveX does not offer functionality for external usage, this is used by End-Users only - not developers and their applications
For customized display of pdfs in a browser:
Method A. You may use our PDF-Viewer ActiveX Control(full functionality).
For this you should implement your simple ActiveX control, which will use our PDF-Viewer ActiveX Control on every start:
1. will remove protection from our control using SetDevInfo function(to remove demo labels).
2. will setup programmatically all options for customizing viewing(disabling/enabling features, in your case).
After this, you may use your control for viewing pdfs (similarily to our PDF-Viewer Browser Plugin) by specifying on an HTML-page the CLSID(see SDK-sample) of your object or associating it with a MIME(application/pdf) type.
Method B. You may use our PDF-Viewer Simple ActiveX Control(with restricted functionality):
1. use our PDF-Viewer ActiveX Control(with full functionality) for programmatically disabling/enabling of some features(saving/printing, etc).
2. save your customized settings to an external file using the SaveSettings function.
Both options 1, 2 - operations are available in protected mode also.
After this, you may pass this file to the SettingsURL property of the PDF-Viewer Simple ActiveX Control. When starting, this control will use your settings(once created by the control with full functionality).
You may use our simple control for viewing pdfs by specifying on an HTML-page the CLSID of our simple object - e.g.
For full details see our PDF-Viewer ActiveX SDK Help and examples.
Best
Regards.
Unfortunately, in your case you cannot use the our PDF-Viewer Browser Plugin (which can be displayed in any Internet-Browser) because this ActiveX does not offer functionality for external usage, this is used by End-Users only - not developers and their applications
For customized display of pdfs in a browser:
Method A. You may use our PDF-Viewer ActiveX Control(full functionality).
For this you should implement your simple ActiveX control, which will use our PDF-Viewer ActiveX Control on every start:
1. will remove protection from our control using SetDevInfo function(to remove demo labels).
2. will setup programmatically all options for customizing viewing(disabling/enabling features, in your case).
After this, you may use your control for viewing pdfs (similarily to our PDF-Viewer Browser Plugin) by specifying on an HTML-page the CLSID(see SDK-sample) of your object or associating it with a MIME(application/pdf) type.
Code: Select all
<BODY>
...
<OBJECT ID="MyComObjectForUnprotectPXCV" CLASSID="CLSID:<MyGuid>"></OBJECT>
...
</BODY>
1. use our PDF-Viewer ActiveX Control(with full functionality) for programmatically disabling/enabling of some features(saving/printing, etc).
2. save your customized settings to an external file using the SaveSettings function.
Both options 1, 2 - operations are available in protected mode also.
After this, you may pass this file to the SettingsURL property of the PDF-Viewer Simple ActiveX Control. When starting, this control will use your settings(once created by the control with full functionality).
You may use our simple control for viewing pdfs by specifying on an HTML-page the CLSID of our simple object - e.g.
Code: Select all
<BODY>
...
<OBJECT ID="CoPDFXCpreview" CLASSID="CLSID:C7BCFE0A-B521-4181-A722-904DBF9427D8">
<PARAM NAME="src" VALUE="http://www.server.com/pub/test.pdf#page=2">
<PARAM NAME="SettingsURL" VALUE="http://www.server.com/custom_settings.dat">
</OBJECT>
...
</BODY>
Best
Regards.
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.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.