Hello, We are utilizing the Document Exchange Manager in our website which needs to securely lock down all documents uploaded (PDFs). We have set all users roles on the documents to prevent certain users from seeing certain document folders. However, when we open a PDF file in Internet Explorer (which is the only browser allowed for use with this site), the Save As option appears in the File menu in the main toolbar and the Save As Copy button on adobe reader. We would like to disable these options so the users cannot download a copy of the file to their machine and email that out to other members of their organization. We reviewed the DesktopModules/Controls/View/File.Adobe.Acrobat.ascx control and noticed it uses a javascript object named "PDFObject". We first attempted to remove toolbars, menubars, and the status bar on the browser in the URL section of PDFObject. Below is an example of the code I am talking about: <script type="text/javascript"> <br /> var success = new PDFObject({ url: "<%=DownloadUrl%>", width: "<%=PreferredWidth%>px", height: "<%=PreferredHeight%>px" }).embed('PDFViewerDIV'); <br /> </script> <br /> <br /> We were not able to get the results we were looking for in modifying this file and looked through the module code to locate where "PDFObject" was being created. The file we found it in is DesktopModules/Bring2Mind/DMX/js/ViewCollection.js. We attempted to set attributes to the variable "objEl" for hiding the browser toolbars, menubar, and statusbar. We noticed that the height and width of the browser window were being set in this section as well (towards the bottom of the ViewCollection.js file). This is a sample of what we added to the javascript code: <br /> <br /> objEl.setAttribute("toolbar","no"); <br /> <br /> This did not hide the toolbars or any other bars in the browser either. We have searched through the javascript code and are unsure if the window.open method to open the PDF document into a new browser window is coming from the "ViewCollection.js" file, or if that is set in the compiled code. <br /> <br /> Is there a way we can modify the ViewCollection.js file to remove the browser toolbars when opening a document into a new window? Can the window.open method within the ViewCollection.js file take in attributes for toolbars, menubar, and statusbar? Is the url creation for the PDF document popup window handled in the compiled back end code? Does the url creation for the PDF document viewer popup window occur before the ViewCollection.js module is accessed? |