I am display a pdf online inside an object. When a person clicks on it, they have the option to download, zoom in, etc. I was wondering is there an option or开发者_运维知识库 way to prevent this(parameters, javascript)?
Current object code is this:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
width="99%" height="99%" id="pdf" >
<param name="movie" value="filename.pdf">
<param name="quality" value="high">
<param name="bgcolor" value="##FFFFFF">
<embed src="filename.pdf" quality="high" bgcolor="##FFFFFF" width="99%" height="99%"
name="2003map" align="" type="pdf">
</embed>
</object>
Put invisible mask on top of the OBJECT tag :) Just make sure you don't make scrollbar inaccessible as well. Another drawback is, user will lose ability of right-click-context menu specific to the application [e.g. Adobe Reader].
精彩评论