title: NoClassDefFoundError while reading a pdf file
body: <p>Iam trying to read a pdf file the code is </p>
  
  <pre><code>    try {
  
          File fileConn = new File(filePath);
          InputStream inp = new FileInputStream(fileConn);
          PdfReader reader = new PdfReader(inp);
          int pages = reader.getNumberOfPages();
          System.out.println("Pages" + pages);
      } catch (Exception e) {
          //Handle Exception
      }
  </code></pre>
  
  <p>But the method is throwing NOClassDefFoundError. What coukd be the possible reason</p>