title: itext pdf decryption using user password
body: <p>In itext, can we decrypt a pdf file using the user password that was used to encrypt the file?</p>
  
  <p>I know decryption can be done using owner password. What I want to achieve is:</p>
  
  <p>In my web application, keep pdf files in encrypted form. When the authorized user requests for a pdf file, then depending on the permissions (user's role), I send them a file with appropriate permissions - ALLOW_PRINTING, ALLOW_COPY etc. </p>
  
  <p>What I am doing right now is I encrypt a file using OWNER and USER passwords and then decrypt it using OWNER password but then that file allows all actions - print, copy etc.  </p>
  
  <p>Please help.</p>
  
  <p>Thanks,
  Deepak</p>