title: Performance iText vs.PdfBox
body: <p>I'm trying to convert a pdf (my favorite book Effective Java, if its matter)to text, i checked both iText and Apache PdfBox. I see a really big difference in performance: With iText it took 2:521, and with PdfBox: 6:117.
  This if my code for PdfBOx </p>
  
  <pre><code>PDFTextStripper stripper = new PDFTextStripper();
  BUFFER.append(stripper.getText(PDDocument.load(pdf)));
  </code></pre>
  
  <p>And this is for iText</p>
  
  <pre><code>PdfReader reader = new PdfReader(pdf);
  for (int i = 1; i &lt;= reader.getNumberOfPages(); i++) {
    BUFFER.append(PdfTextExtractor.getTextFromPage(reader, i));
  }
  </code></pre>
  
  <p>My question is in what the performance depends, is there a way how to make PdfBox faster? Or only to use iText? And can you explain more about how strategies affect performance?</p>