title: How to read File using PDFReader
body: <p>I have a method <code>public void readFile(File inputFile, File outputFile)</code>, I want to read the File using <code>PDFReader</code>, but the reader reads only <code>String</code> values, I cant hardcode the string value because it is given by the user while exporting the file.</p>
  
  <p>I used <code>FileUtils.readFileToString(inputFile)</code> but I get exception on the line <code>PdfReader reader = new PdfReader(input);</code></p>
  
  <p>Kindly suggest a way to achieve this.</p>
  
  <p>Code Snippet:</p>
  
  <pre><code>public void readFile(File inputFile, File outputFile){
  String input = FileUtils.readFileToString(inputFile);
  PdfReader reader = new PdfReader(input);
  
  //some more code
  }
  </code></pre>