Disable copy paste in pdf in asp.net


While you are making online book reading like website and you want that your user should not copy and paste your valuable pdf file then Google has provided way to make your pdf very secure. Follow this step and see the magic

  • Most important requirement is that the pdf you want to show in secure manner must be in some folder or over anywhere in web. So I have download a random pdf and uploaded to the server.
  • So the url for that is



  • Next step include following iframe script which is as follow

<iframe src=”http://docs.google.com/gview?url=http://error.txtwheel.com/wp-content/uploads/2012/10/hostingaspnetajax.pdf&embedded=true”
style=”width: 600px; height: 500px;” frameborder=”0″></iframe>

  • Then change only bold URL to your custom URL
  • And see the magic as below 

Leave a Comment

Your email address will not be published.