How to restrict a pdf to save and download and edit asp.netNithish Reddy8yAsked May 15, 2018, 6:18 AM9.9k.NETRestrict a pdf file !
Sanwar Ranwa8y agoPosted Jun 14, 2018, 10:42 AMAccepted answerHello Nithish Podduturi I am share some Links which help you to find answer for your question https://www.essentialobjects.com/forum/postst7241_To-restrict-Print-save-text-selection-option-in-genreated-PDF-from-html.aspx https://stackoverflow.com/questions/4930914/prevent-pdf-file-from-downloading-and-printing http://forums.techsoup.org/cs/community/f/20/t/29929.aspx https://weblog.west-wind.com/posts/2007/May/21/Downloading-a-File-with-a-Save-As-Dialog-in-ASPNET?utm_source=twitterfeed&utm_medium=twitter Use these links +1
VKVenkat Karasi8y agoPosted Jun 29, 2018, 8:16 PMDisable the right click on browsers using java scripts window.onload = function () { document.onmousedown = disableRightclick; var message = "Right click not allowed !!"; function disableRightclick(evt) { if (evt.button == 2) { alert(message); return false; } } }; $(document).ready(function () { $('body').bind('cut copy paste SaveAs ', function (e) { e.preventDefault(); }); // contextmenu the RightClick on all Browsers $("body").on("contextmenu", function (e) { e.preventDefault(); return false; }); // Disable the RightClick on IE Browser if (navigator.appName == "Microsoft Internet Explorer") { event.returnValue = false; } }); 0
Nithish Reddy8y agoPosted Jun 15, 2018, 5:15 AMI tried thoses things bro, but i want to restrict a pdf in web browser's when a pdf is viewed in Iframe tag or embed tag or a href ! and more over i need it through a javascript or jquery validations ?+1
MAMohamed Abedallah8y agoPosted Jun 14, 2018, 8:11 AMNithish,I answered a similar question about 1 month ago and I suggested changing the PDF security options using LEADTOOLS before viewing them. Here is a link to the post:https://www.c-sharpcorner.com/forums/dev-express-pdf-viewer-control+1
Sanwar RanwaPosted Jun 14, 2018, 10:42 AM
Venkat KarasiPosted Jun 29, 2018, 8:16 PM
Nithish ReddyPosted Jun 15, 2018, 5:15 AM
Mohamed AbedallahPosted Jun 14, 2018, 8:11 AM
I answered a similar question about 1 month ago and I suggested changing the PDF security options using LEADTOOLS before viewing them. Here is a link to the post:
https://www.c-sharpcorner.com/forums/dev-express-pdf-viewer-control