title: Program with PDFBox searching for words
body: <p>I would like to make a program that search for words in a pdf
  using PDFBox.</p>
  
  <p>Here is my little program:</p>
  
  <pre><code>List&lt;String&gt; words ;// List of words 
          PDDocument document = PDDocument.load("D:\\INIT.pdf");              
          PDFTextStripper s = new PDFTextStripper();
          String content = s.getText(document);
          Comparing(content,words);//methode for searching those words on my text
          System.out.println(content);
  </code></pre>
  
  <p>But is it possible to look directly into the PDF without the text with <code>getText</code>?</p>
  
  <p><code>getText</code> returns a string .in the case we have a big text in pdf File can this String bear the same text ,  is there another type to use for this case when the text is big and not supported by String ????</p>