To prevent browser from opening the PDF file, you can use the file location attribute of the HTML. When you try to display, for example, “Page 1″, document will not display this file. Using the attribute for blocking the user from access to file location attribute The best way is to use a plugin like “File Uploader” : To see how to block access to file locations, you just need to go to the “Security” tab, and select the “Allow a particular link to download a file from this site” option. How To Prevent PDF Download in The best way is to block the file download by your application by blocking access to the view (view=1) and the print (publish=1) With View Only and Publish Only, we can restrict the user to display only certain view and view only printed PDF. This will block access to view and view and print. Why Is PDF file Encrypted Now? How To encrypt PDF Files in SharePoint Online, Office 365 It is not that clear yet how to encrypt PDF file in SharePoint Web Apps. But it is a matter of concern to keep the PDF file safe in this environment. We have seen that, with the help of Microsoft Office 365, the following PDF files can be protected from the user: PDF.com SharePoint Online Doc: C:\My Document\My Project\Project C:\My Project\SharePoint Document In SharePoint Online, Microsoft Outlook, etc., the Office 365 security rules do not stop using the password from encrypting the PDF file. The only way to stop it from encrypting the file is to switch to password-only mode. In this mode, password is not allowed to be used to encrypt document data. With the use of this feature (which is also available for Word and Excel documents) in Office 365, you can still protect the file and keep them in a file management system (file system and local folder storage) which would not allow the user to open the file. For instance, using a folder with the following name “documents” in folder SharePoint Online will ensure that the file is protected. What Can Be Done with Encrypted PDF File in SharePoint Web Apps? In this series, we shall discuss how to protect user's digital life with encryption, and with the help of Microsoft Office 365.