I have been using an embedded Google Viewer with iframe to display a PDF. I am trying to remove the full-screen popout feature from it and disable right-click within the iframe.
I have tried several solutions but nothing seems to work. The URLs for my PDFs are stored in a database.
Here is my code:
<iframe id="display" src="https://docs.google.com/gview?url=http://infolab.stanford.edu/pub/papers/google.pdf&pid=explorer&efh=false&a=v&chrome=false&embedded=true" style="width:1000px; height:1000px;" frameborder="0"></iframe>
I attempted to change the CSS like this:
<script type="text/javascript">
var iframe = jQuery("#display").contents().find("aria-label").css( "display", "none" );
Can someone please assist me?