title: Hide pdf toolbar with pdfjs with laravel 5
body: <p>Please I need to be guided on how to remove the pdf toolbar from a pdf document I dynamically display on a page on my website to discourage printing and downloading of the document from the website.</p>
  
  <p>This is the toolbar<a href="https://i.stack.imgur.com/XfWyH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XfWyH.png" alt="enter image description here"></a></p>
  
  <p>On web.php route page, I have the following route </p>
  
  <pre><code>Route::get('showresource/{id}','ResourceController@show');
  </code></pre>
  
  <p>Which returns the file and is then displayed in the following blade page </p>
  
  <pre><code>    &lt;object data="{{url('showresource/'.$current_lesson-&gt;resource_file)}}" type="{{$mime_type}}" height="600px" width="100%" id="resource-pdf" style=""&gt;&lt;/object&gt;
  </code></pre>
  
  <p>I have added the following javascript to the page to no avail.</p>
  
  <pre><code>$(document).ready(function () {
    $('#resource-pdf').contents().find('#toolbar').css('display','none');
     });
  </code></pre>
  
  <p>This does not seem to be working.</p>
  
  <p>I have also tried to use pdfjs but I don't know how to apply it to a laravel 5 project. I look forward to any support to solve this.</p>
  
  <p>Thank you</p>