title: How to get page size of a pdf bytearray with plain java code?
body: <p>I have a bytearray of a pdf document.<br>
  Is it possible(without using any external libraries) to get to know how many pages the pdf contains?<br> Is it possible with only the use of java8?</p>
  
  <p>I find it rather stupid that I have to import a whole pdf external library in my project for just getting to know the pagesize of a pdf.<br> There must be a way with just only using the java8 jdk, no?</p>