title: How to restrict user from downloading or saving pdf file?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4930914/prevent-pdf-file-from-downloading-and-printing">Prevent PDF file from downloading and printing</a>  </p>
  </blockquote>
  
  
  
  <p>In my current symfony project (in admin section) I uploaded pdf file and open it by using JavaScript, but I want to restrict user to download or save for that pdf?</p>
  
  <p>So is it possible to me to restrict user to download or save pdf?</p>
  
  <p>I means user can only view content of that pdf, i want to disable download or save options of all browsers for that pdf. </p>
  
  <p>pdf file is open from server only.</p>
  
  <h2>Action File Code:</h2>
  
  <pre><code>echo "&lt;span onclick=\"clickme('$pdf_name')\";&gt;view&lt;/span&gt;";
  </code></pre>
  
  <h2>Success File Code:</h2>
  
  <pre><code>&lt;script type="text/javascript"&gt;
     function clickme(file_name){
       window.open(file_name); 
     }   
  &lt;/script&gt;
  </code></pre>
  
  <p>Thank you in advanced.</p>