title: Java: NoSuchMethodError with PDPageContentStream
body: <p>I am trying to use <code>PDFBox</code> in Java but get a <code>NoSuchMethodError</code> when trying to create a <code>PDPageContentStream</code> object.
  The error I get at execution is:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoSuchMethodError: org.apache.pdfbox.pdmodel.PDPage.hasContents()Z
  </code></pre>
  
  <p>Thanks. </p>