Suppress tool information in Adobe

I was looking for a way to prevent the download of a PDF file, and finally found it in HTML5. The code is really simple and

<embed src="filename.pdf#toolbar=0&navpanes=0&scrollbar=0" width="500" height="375"> 

What suppresses adobe options is # toolbar = 0 & navpanes = 0 & scrollbar = 0.

My question is: is there a way to do this in non-html5 code? I tried the following:

 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="99%" height="99%" id="pdf" style="position:absolute; z-index:-1;"> <param name="movie" value="filename.pdf#toolbar=0&navpanes=0&scrollbar=0"> <param name="quality" value="high"> <param name="wmode" value="opaque" /> <param name="Enabled" value="1" /> <param name="toolbar" value="0" /> <param name="navpanes" value="0" /> <param name="scrollbar" value="0" /> <param name="bgcolor" value="##FFFFFF"> <embed nav src="filename.pdf#toolbar=0&navpanes=0&scrollbar=0" quality="high" bgcolor="##FFFFFF" width="99%" height="99%" name="2003map" align="" type="pdf"> </embed> </object> 
+4
source share
2 answers

I'm not 100%, but try adding values ​​to <embed>

 <embed nav src="filename.pdf" quality="high" bgcolor="##FFFFFF" width="99%" height="99%" name="2003map" align="" type="pdf" toolbar="0" navpanes="0" scrollbar="0" </embed> 

This information doubling works for wmode , so it can work very well here too :)

0
source

since your users use the client-side mechanism to render the PDF document, there is no way to stop downloading or saving them. at some point or along the way, the document arrives at the client machine. in the case of html, it is always easy to have all the resources you serve to save.

you need to display it on the server if you are not using a pdf file in any case on your client machine.

you can use flash obfuscation in combination with Flash Pdf viewer, like scribd , and have the path to the PDF file, but it is not 100% safe because the resource remains available, but you can return it as binary from the server side after of how your swf viewer identified himself.

0
source

Source: https://habr.com/ru/post/1341825/


All Articles