Hi Anuj,
I was not able find any proper solution for the mentioned use-case, below are some of my findings..
- By adding #toolbar=0 at the end of the Pdf file src url as shown below will help you to get rid of toolbar option
src="view/1.pdf?page=hsn#toolbar=0"
Limitation:
- Such implementation is only working in Chrome and Safari Browser
- End user with technical understanding can easily edit and set the toolbar value from 0 to 1 using the browser inspect element functionality
----------------------------------------------------------
- I guess the attached screen clip in the main post is from Microsoft Edge/Internet Explorer/Firefox browser
- On analyzing the rendering of the Pdf preview section in the Microsoft Edge browser, seems to be quite different than the Chrome browser rendering
- Such Pdf viewer toolbox options are browser specific and I don't think it can be easily modified as per the requirement
- Previewing/loading the Pdf in the client side (i.e. in the Browser) itself allow the end-user to access the Pdf file
- Using the protected pdf with a secret key is also an option but it will also restrict from displaying the pdf content
Regards,
Benjith Sam