title: How to open password protected pdf using itext
body: <p>I am using iText library to read PDF files. It's working fine for all the pdf files, except for password protected ones. I used some way by using the overloading constructor of <code>PdfReader</code> class</p>
  
  <pre><code>PdfReader reader = new PdfReader("locked pdf file","password".getBytes());
  </code></pre>
  
  <p>But it is showing show error like :</p>
  
  <blockquote>
    <p>Exception in thread "main" java.lang.NoClassDefFoundError: org/bouncycastle/asn1/ASN1OctetString</p>
  </blockquote>
  
  <p>Is there any other to read password protected pdf file? or should I include bouncy castle into my project library?</p>